core/modules/page_cache/src/Tests/PageCacheTest.php | 4 ---- core/modules/rest/src/Tests/PageCacheTest.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php index 9194e65..79b69f3 100644 --- a/core/modules/page_cache/src/Tests/PageCacheTest.php +++ b/core/modules/page_cache/src/Tests/PageCacheTest.php @@ -136,10 +136,6 @@ function testQueryParameterFormatRequests() { $node = $this->drupalCreateNode(['type' => 'article']); $node_uri = $node->urlInfo(); $node_url_with_hal_json_format = $node->urlInfo('canonical')->setRouteParameter('_format', 'hal_json'); - /** @var \Drupal\user\RoleInterface $role */ - $role = Role::load('anonymous'); - $role->grantPermission('restful get entity:node'); - $role->save(); $this->drupalGet($node_uri); $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS'); diff --git a/core/modules/rest/src/Tests/PageCacheTest.php b/core/modules/rest/src/Tests/PageCacheTest.php index 0ce66da..6715b8b 100644 --- a/core/modules/rest/src/Tests/PageCacheTest.php +++ b/core/modules/rest/src/Tests/PageCacheTest.php @@ -47,10 +47,6 @@ public function testConfigChangePageCache() { $this->enableService('entity:entity_test', 'POST'); $permissions = [ 'administer entity_test content', - 'restful post entity:entity_test', - 'restful get entity:entity_test', - 'restful patch entity:entity_test', - 'restful delete entity:entity_test', ]; $account = $this->drupalCreateUser($permissions);