Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
8ea5860b
Commit
8ea5860b
authored
May 18, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#451668
by mfb: page cache test failing with mod_deflate.
parent
3b28636f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/simpletest/tests/bootstrap.test
modules/simpletest/tests/bootstrap.test
+1
-1
No files found.
modules/simpletest/tests/bootstrap.test
View file @
8ea5860b
...
@@ -171,7 +171,7 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase {
...
@@ -171,7 +171,7 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase {
$this
->
drupalLogin
(
$user
);
$this
->
drupalLogin
(
$user
);
$this
->
drupalGet
(
'system-test/set-header'
,
array
(
'query'
=>
array
(
'name'
=>
'Foo'
,
'value'
=>
'bar'
)));
$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
(
'X-Drupal-Cache'
),
t
(
'Caching was bypassed.'
));
$this
->
assert
False
(
$this
->
drupalGetHeader
(
'Vary'
),
t
(
'Vary
header was not sent.'
));
$this
->
assert
True
(
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
(
'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
(
'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.'
));
$this
->
assertEqual
(
$this
->
drupalGetHeader
(
'Foo'
),
'bar'
,
t
(
'Custom header was sent.'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment