core/modules/node/lib/Drupal/node/Tests/NodePageCacheTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/node/lib/Drupal/node/Tests/NodePageCacheTest.php b/core/modules/node/lib/Drupal/node/Tests/NodePageCacheTest.php index 49bc190..0fc6ed2 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodePageCacheTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodePageCacheTest.php @@ -49,7 +49,8 @@ function setUp() { */ public function testNodeDelete() { $author = $this->drupalCreateUser(); - $node_path = 'node/' . $this->drupalCreateNode(array('uid' => $author->id()))->id(); + $node_id = $this->drupalCreateNode(array('uid' => $author->id()))->id(); + $node_path = 'node/' . $node_id; // Populate page cache. $this->drupalGet($node_path); @@ -58,7 +59,7 @@ public function testNodeDelete() { $cid_parts = array(url($node_path, array('absolute' => TRUE)), 'html'); $cid = sha1(implode(':', $cid_parts)); $cache_entry = \Drupal::cache('page')->get($cid); - $this->assertIdentical($cache_entry->tags, array('content:1', 'user:' . $author->id(), 'filter_format:plain_text')); + $this->assertIdentical($cache_entry->tags, array('content:1', 'node_view:' . $node_id, 'node:' . $node_id, 'user:' . $author->id(), 'filter_format:plain_text')); // Login and delete the node. $this->drupalLogin($this->adminUser);