core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php | 1 - core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php b/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php index 330e58c..0fe81e0 100644 --- a/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php +++ b/core/modules/shortcut/src/Tests/ShortcutCacheTagsTest.php @@ -7,7 +7,6 @@ namespace Drupal\shortcut\Tests; -use Drupal\Core\Entity\EntityInterface; use Drupal\shortcut\Entity\Shortcut; use Drupal\system\Tests\Entity\EntityCacheTagsTestBase; use Drupal\user\Entity\Role; diff --git a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php index 0623750..7cbd0c9 100644 --- a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php +++ b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php @@ -318,6 +318,7 @@ public function testReferencedEntity() { // The default cache contexts for rendered entities. $default_cache_contexts = ['languages:' . LanguageInterface::TYPE_INTERFACE, 'theme']; $entity_cache_contexts = $default_cache_contexts; + // Cache tags present on every rendered page. $page_cache_tags = Cache::mergeTags( ['rendered'],