drupal core updated to 7.28
This commit is contained in:
@@ -219,6 +219,18 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase {
|
||||
$this->assertFalse($this->drupalGetHeader('Content-Encoding'), 'A Content-Encoding header was not sent.');
|
||||
$this->assertTitle(t('Welcome to @site-name | @site-name', array('@site-name' => variable_get('site_name', 'Drupal'))), 'Site title matches.');
|
||||
$this->assertRaw('</html>', 'Page was not compressed.');
|
||||
|
||||
// Disable compression mode.
|
||||
variable_set('page_compression', FALSE);
|
||||
|
||||
// Verify if cached page is still available for a client with compression support.
|
||||
$this->drupalGet('', array(), array('Accept-Encoding: gzip,deflate'));
|
||||
$this->drupalSetContent(gzinflate(substr($this->drupalGetContent(), 10, -8)));
|
||||
$this->assertRaw('</html>', 'Page was delivered after compression mode is changed (compression support enabled).');
|
||||
|
||||
// Verify if cached page is still available for a client without compression support.
|
||||
$this->drupalGet('');
|
||||
$this->assertRaw('</html>', 'Page was delivered after compression mode is changed (compression support disabled).');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user