summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-18 14:28:34 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-18 14:28:34 +0000
commit8ea5860b5ed0fe21fe859c938e241e074573e121 (patch)
tree1fb256117421ac9f449abb1f1fb801b14577f5b4 /modules/simpletest
parent3b28636ff95180838de09adaa6f7c2dd036edacf (diff)
downloadbrdo-8ea5860b5ed0fe21fe859c938e241e074573e121.tar.gz
brdo-8ea5860b5ed0fe21fe859c938e241e074573e121.tar.bz2
- Patch #451668 by mfb: page cache test failing with mod_deflate.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/bootstrap.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test
index f999f7e6f..bcd8e4cc2 100644
--- a/modules/simpletest/tests/bootstrap.test
+++ b/modules/simpletest/tests/bootstrap.test
@@ -171,7 +171,7 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase {
$this->drupalLogin($user);
$this->drupalGet('system-test/set-header', array('query' => array('name' => 'Foo', 'value' => 'bar')));
$this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), t('Caching was bypassed.'));
- $this->assertFalse($this->drupalGetHeader('Vary'), t('Vary header was not sent.'));
+ $this->assertTrue(strpos($this->drupalGetHeader('Vary'), 'Cookie') === FALSE, t('Vary: Cookie header was not sent.'));
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'no-cache, must-revalidate, post-check=0, pre-check=0', t('Cache-Control header was sent.'));
$this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', t('Expires header was sent.'));
$this->assertEqual($this->drupalGetHeader('Foo'), 'bar', t('Custom header was sent.'));