core/modules/node/src/Tests/Views/FrontPageTest.php | 1 - core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/core/modules/node/src/Tests/Views/FrontPageTest.php b/core/modules/node/src/Tests/Views/FrontPageTest.php index 61fe5eb..5c3b095 100644 --- a/core/modules/node/src/Tests/Views/FrontPageTest.php +++ b/core/modules/node/src/Tests/Views/FrontPageTest.php @@ -282,7 +282,6 @@ protected function assertFrontPageViewCacheTags($do_assert_views_caches) { $cache_contexts = Cache::mergeContexts($cache_contexts, [ 'theme', 'timezone', - 'user.roles' ]); // First page. diff --git a/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php b/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php index dd5adf0..330e58c 100644 --- a/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php +++ b/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php @@ -73,14 +73,4 @@ public function testEntityCreation() { $this->assertFalse(\Drupal::cache('render')->get('foo'), 'Creating a new shortcut invalidates the cache tag of the shortcut set.'); } - - /** - * {@inheritdoc} - */ - protected function getAdditionalCacheContextsForEntity(EntityInterface $entity) { - return [ - 'user.roles', - ]; - } - }