core/modules/filter/src/FilterProcessResult.php | 2 +- core/modules/filter/src/Tests/FilterAPITest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/filter/src/FilterProcessResult.php b/core/modules/filter/src/FilterProcessResult.php index b0d4fd2..167478d 100644 --- a/core/modules/filter/src/FilterProcessResult.php +++ b/core/modules/filter/src/FilterProcessResult.php @@ -299,8 +299,8 @@ public function setPostRenderCacheCallbacks(array $post_render_cache_callbacks) */ public function getBubbleableMetadata() { return new BubbleableMetadata( - $this->getCacheTags(), $this->getCacheContexts(), + $this->getCacheTags(), $this->getAssets(), $this->getPostRenderCacheCallbacks() ); diff --git a/core/modules/filter/src/Tests/FilterAPITest.php b/core/modules/filter/src/Tests/FilterAPITest.php index e139da9..6ee11e2 100644 --- a/core/modules/filter/src/Tests/FilterAPITest.php +++ b/core/modules/filter/src/Tests/FilterAPITest.php @@ -261,7 +261,7 @@ function testProcessedTextElement() { // The cache context set by the filter_test_cache_contexts filter. 'language', ]; - $this->assertEqual($expected_cache_contexts, $build['#cache']['contexts']);//, 'Expected cache contexts present.'); + $this->assertEqual($expected_cache_contexts, $build['#cache']['contexts'], 'Expected cache contexts present.'); $expected_markup = '

Hello, world!

This is a dynamic llama.

'; $this->assertEqual($expected_markup, $build['#markup'], 'Expected #post_render_cache callback has been applied.'); }