From 360ca48bdf00b9029e8ad1c9cbbeb90ade393273 Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Fri, 30 Sep 2016 14:33:35 +0100 Subject: [PATCH] [TwigBundle] Adjust CacheWarmingTest for TemplateCacheWarmer introduced in 2.8 --- .../Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php index 0b04f81af0..56fd7f4245 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php @@ -31,7 +31,7 @@ class NewCacheWamingTest extends \PHPUnit_Framework_TestCase $this->assertTrue(file_exists($kernel->getCacheDir().'/twig')); } - public function testCacheIsNotWarmedWhenTemplatingIsDisabled() + public function testCacheIsProperlyWarmedWhenTemplatingIsDisabled() { $kernel = new CacheWarmingKernel(false); $kernel->boot(); @@ -40,7 +40,7 @@ class NewCacheWamingTest extends \PHPUnit_Framework_TestCase $warmer->enableOptionalWarmers(); $warmer->warmUp($kernel->getCacheDir()); - $this->assertFalse(file_exists($kernel->getCacheDir().'/twig')); + $this->assertTrue(file_exists($kernel->getCacheDir().'/twig')); } protected function setUp()