diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-22 15:29:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-22 15:29:50 +0000 |
commit | 3a5f422cc50ca418fdbf7cedfb044bf4d048cb12 (patch) | |
tree | 50d319195a187c87578e6f87f4b7224da213688b /modules | |
parent | 8e0a22e47aba70b4c6a2531f7c725f569af0d17a (diff) | |
download | brdo-3a5f422cc50ca418fdbf7cedfb044bf4d048cb12.tar.gz brdo-3a5f422cc50ca418fdbf7cedfb044bf4d048cb12.tar.bz2 |
#323474 follow-up by gpk: Some comment improvements to hook_boot/exit simpletests.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/simpletest/tests/bootstrap.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test index 82e1ee0da..2a8e433fe 100644 --- a/modules/simpletest/tests/bootstrap.test +++ b/modules/simpletest/tests/bootstrap.test @@ -150,7 +150,7 @@ class HookBootExitTestCase extends DrupalWebTestCase { function getInfo() { return array( - 'name' => t('Boot and exit hook functionality'), + 'name' => t('Boot and exit hook invocation'), 'description' => t('Test that hook_boot() and hook_exit() are called correctly.'), 'group' => t('Bootstrap'), ); @@ -165,8 +165,8 @@ class HookBootExitTestCase extends DrupalWebTestCase { */ function testHookBootExit() { // Test with cache disabled. Boot and exit should always fire. Initialize - // the number of hook calls to one since the first call to two since the - // first call to drupalGet actually performs two HTTP requests. + // the number of hook calls to two since the first call to drupalGet + // actually performs two HTTP requests. variable_set('cache', CACHE_DISABLED); $this->drupalGet(''); $calls = 2; @@ -180,8 +180,8 @@ class HookBootExitTestCase extends DrupalWebTestCase { $this->assertEqual(db_query("SELECT COUNT(*) FROM {watchdog} WHERE type = 'system_test' AND message = 'hook_boot'")->fetchField(), $calls, t('hook_boot called with normal cache.')); $this->assertEqual(db_query("SELECT COUNT(*) FROM {watchdog} WHERE type = 'system_test' AND message = 'hook_exit'")->fetchField(), $calls, t('hook_exit called with normal cache.')); - // Test with aggressive cache. Boot and exit should only fire if there is - // no page cached. + // Test with aggressive cache. Boot and exit should not fire since the + // page is cached. variable_set('cache', CACHE_AGGRESSIVE); $this->assertTrue(cache_get(url('', array('absolute' => TRUE)), 'cache_page'), t('Page has been cached.')); $this->drupalGet(''); |