Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8956ec77
Commit
8956ec77
authored
Jul 07, 2014
by
alexpott
Browse files
Issue
#2287895
by tim.plunkett: Fixed BlockCacheTest expects /node to be available.
parent
dd14f70e
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/block/src/Tests/BlockCacheTest.php
View file @
8956ec77
...
...
@@ -20,7 +20,7 @@ class BlockCacheTest extends WebTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'block'
,
'block_test'
);
public
static
$modules
=
array
(
'block'
,
'block_test'
,
'test_page_test'
);
protected
$admin_user
;
protected
$normal_user
;
...
...
@@ -199,17 +199,19 @@ function testCachePerPage() {
$current_content
=
$this
->
randomName
();
\
Drupal
::
state
()
->
set
(
'block_test.content'
,
$current_content
);
$this
->
drupalGet
(
'
nod
e'
);
$this
->
assertText
(
$current_content
,
'Block content displays on the
node
page.'
);
$this
->
drupalGet
(
'
test-pag
e'
);
$this
->
assertText
(
$current_content
,
'Block content displays on the
test
page.'
);
$old_content
=
$current_content
;
$current_content
=
$this
->
randomName
();
\
Drupal
::
state
()
->
set
(
'block_test.content'
,
$current_content
);
$this
->
drupalGet
(
'user'
);
$this
->
assertNoText
(
$old_content
,
'Block content cached for the node page does not show up for the user page.'
);
$this
->
drupalGet
(
'node'
);
$this
->
assertText
(
$old_content
,
'Block content cached for the node page.'
);
$this
->
assertResponse
(
200
);
$this
->
assertNoText
(
$old_content
,
'Block content cached for the test page does not show up for the user page.'
);
$this
->
drupalGet
(
'test-page'
);
$this
->
assertResponse
(
200
);
$this
->
assertText
(
$old_content
,
'Block content cached for the test page.'
);
}
/**
...
...
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