X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FKernel%2FRenderCacheIntegrationTest.php;h=02e90cd502079dcad775281347e281025ba12be9;hp=a2bec23a05cd081afede33f7bf599f45c5044473;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php b/web/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php index a2bec23a0..02e90cd50 100644 --- a/web/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php +++ b/web/core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php @@ -98,7 +98,6 @@ class RenderCacheIntegrationTest extends ViewsKernelTestBase { $this->assertViewsCacheTags($view, $base_tags, $do_assert_views_caches, $base_tags); $this->assertViewsCacheTagsFromStaticRenderArray($view, $base_tags, $do_assert_views_caches); - // Non-empty result (1 entity). /** @var \Drupal\Core\Entity\EntityInterface[] $entities */ $entities[] = $entity = EntityTest::create(); @@ -109,7 +108,6 @@ class RenderCacheIntegrationTest extends ViewsKernelTestBase { $this->assertViewsCacheTags($view, $tags_with_entity, $do_assert_views_caches, $tags_with_entity); $this->assertViewsCacheTagsFromStaticRenderArray($view, $tags_with_entity, $do_assert_views_caches); - // Paged result (more entities than the items-per-page limit). for ($i = 0; $i < 5; $i++) { $entities[] = $entity = EntityTest::create(); @@ -164,7 +162,7 @@ class RenderCacheIntegrationTest extends ViewsKernelTestBase { $this->pass('Test arguments'); // Custom assert for a single result row. - $single_entity_assertions = function(array $build, EntityInterface $entity) { + $single_entity_assertions = function (array $build, EntityInterface $entity) { $this->setRawContent($build['#markup']); $result = $this->cssSelect('div.views-row'); @@ -259,7 +257,6 @@ class RenderCacheIntegrationTest extends ViewsKernelTestBase { $this->assertViewsCacheTags($view, $result_tags_with_entity, $do_assert_views_caches, $render_tags_with_entity); $this->assertViewsCacheTagsFromStaticRenderArray($view, $render_tags_with_entity, $do_assert_views_caches); - // Paged result (more entities than the items-per-page limit). for ($i = 0; $i < 5; $i++) { $entities[] = $entity = EntityTest::create();