Commit ff1c072b authored by Dries's avatar Dries
Browse files

- Patch #634240 by catch, yched: system_list() caching was broken.

parent de137a2d
......@@ -87,17 +87,17 @@ class ModuleUnitTest extends DrupalWebTestCase {
*/
function testModuleImplements() {
// Clear the cache.
cache_clear_all('module_implements', 'cache');
$this->assertFalse(cache_get('module_implements'), t('The module implements cache is empty.'));
cache_clear_all('module_implements', 'cache_bootstrap');
$this->assertFalse(cache_get('module_implements', 'cache_bootstrap'), t('The module implements cache is empty.'));
$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.
$this->user = $this->drupalCreateUser();
$this->drupalLogin($this->user);
cache_clear_all('module_implements', 'cache');
cache_clear_all('module_implements', 'cache_bootstrap');
$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.'));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment