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

merge-requests/26/head
Dries Buytaert 2009-11-18 20:00:31 +00:00
parent de137a2dfb
commit ff1c072b2e
1 changed files with 5 additions and 5 deletions

View File

@ -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.'));
} }
} }