core/modules/system/src/Tests/Theme/TwigSettingsTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/system/src/Tests/Theme/TwigSettingsTest.php b/core/modules/system/src/Tests/Theme/TwigSettingsTest.php index 36cc48d..f581fa62 100644 --- a/core/modules/system/src/Tests/Theme/TwigSettingsTest.php +++ b/core/modules/system/src/Tests/Theme/TwigSettingsTest.php @@ -114,8 +114,7 @@ function testTwigCacheOverride() { $this->rebuildContainer(); // This should return false after rebuilding the service container. - $new_cache_filename = $this->container->get('twig')->getCacheFilename($template_filename); - $this->assertFalse($new_cache_filename, 'Twig environment does not return cache filename after caching is disabled.'); + $this->assertFalse($this->container->get('twig')->getCache(), 'Twig environment has caching disabled.'); } /**