X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FEntity%2FEntityWithUriCacheTagsTestBase.php;h=997a4d28f6f1fe083d08ac00cf197f5764367444;hb=74df008bdbb3a11eeea356744f39b802369bda3c;hp=74c110380696edc8fd8870abd3219c851f793e6a;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php b/web/core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php index 74c110380..997a4d28f 100644 --- a/web/core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php +++ b/web/core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php @@ -34,7 +34,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { $view_cache_tag = \Drupal::entityManager()->getViewBuilder($entity_type)->getCacheTags(); $render_cache_tag = 'rendered'; - $this->pass("Test entity.", 'Debug'); $this->verifyPageCache($entity_url, 'MISS'); @@ -65,7 +64,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { // Verify a cache hit. $this->verifyPageCache($entity_url, 'HIT'); - // Verify that after modifying the entity's display, there is a cache miss. $this->pass("Test modification of entity's '$view_mode' display.", 'Debug'); $entity_display = entity_get_display($entity_type, $this->entity->bundle(), $view_mode); @@ -75,7 +73,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { // Verify a cache hit. $this->verifyPageCache($entity_url, 'HIT'); - if ($bundle_entity_type_id = $this->entity->getEntityType()->getBundleEntityType()) { // Verify that after modifying the corresponding bundle entity, there is a // cache miss. @@ -90,7 +87,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { $this->verifyPageCache($entity_url, 'HIT'); } - if ($this->entity->getEntityType()->get('field_ui_base_route')) { // Verify that after modifying a configurable field on the entity, there // is a cache miss. @@ -115,7 +111,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { $this->verifyPageCache($entity_url, 'HIT'); } - // Verify that after invalidating the entity's cache tag directly, there is // a cache miss. $this->pass("Test invalidation of entity's cache tag.", 'Debug'); @@ -125,7 +120,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { // Verify a cache hit. $this->verifyPageCache($entity_url, 'HIT'); - // Verify that after invalidating the generic entity type's view cache tag // directly, there is a cache miss. $this->pass("Test invalidation of entity's 'view' cache tag.", 'Debug'); @@ -135,7 +129,6 @@ abstract class EntityWithUriCacheTagsTestBase extends EntityCacheTagsTestBase { // Verify a cache hit. $this->verifyPageCache($entity_url, 'HIT'); - // Verify that after deleting the entity, there is a cache miss. $this->pass('Test deletion of entity.', 'Debug'); $this->entity->delete();