core/modules/system/src/Tests/Common/RenderTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/modules/system/src/Tests/Common/RenderTest.php b/core/modules/system/src/Tests/Common/RenderTest.php index 7587af6..7aadd03 100644 --- a/core/modules/system/src/Tests/Common/RenderTest.php +++ b/core/modules/system/src/Tests/Common/RenderTest.php @@ -500,7 +500,7 @@ function testDrupalRenderPostRenderCache() { '#markup' => '

#cache enabled, GET

', '#attached' => $test_element['#attached'], '#post_render_cache' => $test_element['#post_render_cache'], - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $this->assertIdentical($cached_element, $expected_element, 'The correct data is cached: the stored #markup and #attached properties are not affected by #post_render_cache callbacks.'); @@ -617,7 +617,7 @@ function testDrupalRenderChildrenPostRenderCache() { $context_3, ) ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $dom = Html::load($cached_element['#markup']); @@ -698,7 +698,7 @@ function testDrupalRenderChildrenPostRenderCache() { $context_3, ) ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $dom = Html::load($cached_parent_element['#markup']); @@ -724,7 +724,7 @@ function testDrupalRenderChildrenPostRenderCache() { $context_3, ) ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $dom = Html::load($cached_child_element['#markup']); @@ -833,7 +833,7 @@ function testDrupalRenderRenderCachePlaceholder() { $context ), ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $this->assertIdentical($cached_element, $expected_element, 'The correct data is cached: the stored #markup and #attached properties are not affected by #post_render_cache callbacks.'); @@ -931,7 +931,7 @@ function testDrupalRenderChildElementRenderCachePlaceholder() { $context, ), ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $this->assertIdentical($cached_element, $expected_element, 'The correct data is cached for the child element: the stored #markup and #attached properties are not affected by #post_render_cache callbacks.'); @@ -956,7 +956,7 @@ function testDrupalRenderChildElementRenderCachePlaceholder() { $context, ), ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $this->assertIdentical($cached_element, $expected_element, 'The correct data is cached for the parent element: the stored #markup and #attached properties are not affected by #post_render_cache callbacks.'); @@ -985,7 +985,7 @@ function testDrupalRenderChildElementRenderCachePlaceholder() { $context, ), ), - '#cache' => array('tags' => array()), + '#cache' => array('tags' => array('rendered' => TRUE)), ); $this->assertIdentical($cached_element, $expected_element, 'The correct data is cached for the child element: the stored #markup and #attached properties are not affected by #post_render_cache callbacks.');