Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / page_cache / tests / src / Functional / PageCacheTest.php
index bf4951d9b0397fd3ffc571140d1b2e7a821de276..3e90d8eb2c080992c816d6b249b94dfeaf7ecab3 100644 (file)
@@ -327,20 +327,20 @@ class PageCacheTest extends BrowserTestBase {
     $this->drupalGet($content_url);
     $this->assertText('Permission to pet llamas: no!');
     $this->assertCacheContext('user.permissions');
-    $this->assertNoCacheTag('config:user.role.authenticated');
+    $this->assertSession()->responseHeaderNotContains('X-Drupal-Cache-Tags', 'config:user.role.authenticated');
     $this->drupalGet($route_access_url);
     $this->assertCacheContext('user.permissions');
-    $this->assertNoCacheTag('config:user.role.authenticated');
+    $this->assertSession()->responseHeaderNotContains('X-Drupal-Cache-Tags', 'config:user.role.authenticated');
 
     // 4. authenticated user, with permission.
     user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['pet llamas']);
     $this->drupalGet($content_url);
     $this->assertText('Permission to pet llamas: yes!');
     $this->assertCacheContext('user.permissions');
-    $this->assertNoCacheTag('config:user.role.authenticated');
+    $this->assertSession()->responseHeaderNotContains('X-Drupal-Cache-Tags', 'config:user.role.authenticated');
     $this->drupalGet($route_access_url);
     $this->assertCacheContext('user.permissions');
-    $this->assertNoCacheTag('config:user.role.authenticated');
+    $this->assertSession()->responseHeaderNotContains('X-Drupal-Cache-Tags', 'config:user.role.authenticated');
   }
 
   /**
@@ -370,7 +370,7 @@ class PageCacheTest extends BrowserTestBase {
           0 => [
             'value' => $this->randomString(),
             'format' => 'plain_text',
-          ]
+          ],
         ],
       ];
       $entity = EntityTest::create($entity_values);