summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-23 18:12:08 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-23 18:12:08 +0000
commit6a93b9d4c40968c073d2be4611cb6b96703b5f64 (patch)
tree233a1325306afd7c009caec82f870042e35b08a2 /modules/simpletest/tests
parenta7b2b9dfd1d17c75afb2f64812d5384efdffb7e4 (diff)
downloadbrdo-6a93b9d4c40968c073d2be4611cb6b96703b5f64.tar.gz
brdo-6a93b9d4c40968c073d2be4611cb6b96703b5f64.tar.bz2
- Patch #336043 by c960657: skip calls to curlExec() in curlConnect(). Nice find, c960657\!
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/bootstrap.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test
index 2a8e433fe..f3fbb1620 100644
--- a/modules/simpletest/tests/bootstrap.test
+++ b/modules/simpletest/tests/bootstrap.test
@@ -100,7 +100,9 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase {
function testPageCache() {
global $base_url;
variable_set('cache', 1);
- // Retrieve the front page, which has already been cached by $this->curlConnect();
+ // Fill the cache.
+ $this->drupalGet($base_url);
+
$this->drupalHead($base_url);
$this->assertText('ETag: ', t('Verify presence of ETag header indicating that page caching is enabled.'));
}
@@ -164,12 +166,10 @@ class HookBootExitTestCase extends DrupalWebTestCase {
* Test calling of hook_boot() and hook_exit().
*/
function testHookBootExit() {
- // Test with cache disabled. Boot and exit should always fire. Initialize
- // the number of hook calls to two since the first call to drupalGet
- // actually performs two HTTP requests.
+ // Test with cache disabled. Boot and exit should always fire.
variable_set('cache', CACHE_DISABLED);
$this->drupalGet('');
- $calls = 2;
+ $calls = 1;
$this->assertEqual(db_query("SELECT COUNT(*) FROM {watchdog} WHERE type = 'system_test' AND message = 'hook_boot'")->fetchField(), $calls, t('hook_boot called with disabled cache.'));
$this->assertEqual(db_query("SELECT COUNT(*) FROM {watchdog} WHERE type = 'system_test' AND message = 'hook_exit'")->fetchField(), $calls, t('hook_exit called with disabled cache.'));