- Patch #634240 by catch, yched: system_list() caching was broken.
parent
de137a2dfb
commit
ff1c072b2e
|
@ -87,17 +87,17 @@ class ModuleUnitTest extends DrupalWebTestCase {
|
||||||
*/
|
*/
|
||||||
function testModuleImplements() {
|
function testModuleImplements() {
|
||||||
// Clear the cache.
|
// Clear the cache.
|
||||||
cache_clear_all('module_implements', 'cache');
|
cache_clear_all('module_implements', 'cache_bootstrap');
|
||||||
$this->assertFalse(cache_get('module_implements'), t('The module implements cache is empty.'));
|
$this->assertFalse(cache_get('module_implements', 'cache_bootstrap'), t('The module implements cache is empty.'));
|
||||||
$this->drupalGet('');
|
$this->drupalGet('');
|
||||||
$this->assertTrue(cache_get('module_implements'), t('The module implements cache is populated after requesting a page.'));
|
$this->assertTrue(cache_get('module_implements', 'cache_bootstrap'), t('The module implements cache is populated after requesting a page.'));
|
||||||
|
|
||||||
// Test again with an authenticated user.
|
// Test again with an authenticated user.
|
||||||
$this->user = $this->drupalCreateUser();
|
$this->user = $this->drupalCreateUser();
|
||||||
$this->drupalLogin($this->user);
|
$this->drupalLogin($this->user);
|
||||||
cache_clear_all('module_implements', 'cache');
|
cache_clear_all('module_implements', 'cache_bootstrap');
|
||||||
$this->drupalGet('');
|
$this->drupalGet('');
|
||||||
$this->assertTrue(cache_get('module_implements'), t('The module implements cache is populated after requesting a page.'));
|
$this->assertTrue(cache_get('module_implements', 'cache_bootstrap'), t('The module implements cache is populated after requesting a page.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue