[TwigBundle] Adjust CacheWarmingTest for TemplateCacheWarmer introduced in 2.8
This commit is contained in:
parent
fe4ae0befc
commit
360ca48bdf
@ -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()
|
||||
|
Reference in New Issue
Block a user