[TwigBundle] Fix CacheWarmingTest are order dependent

This commit is contained in:
Tugdual Saunier 2016-09-30 14:26:39 +01:00
parent 35091b1837
commit fcd6ec2a5e
No known key found for this signature in database
GPG Key ID: D2ACF5DCE38C9C71

View File

@ -72,7 +72,7 @@ class CacheWarmingKernel extends Kernel
{ {
$this->withTemplating = $withTemplating; $this->withTemplating = $withTemplating;
parent::__construct('dev', true); parent::__construct(($withTemplating ? 'with' : 'without').'_templating', true);
} }
public function getName() public function getName()
@ -106,7 +106,7 @@ class CacheWarmingKernel extends Kernel
public function getCacheDir() public function getCacheDir()
{ {
return sys_get_temp_dir().'/'.Kernel::VERSION.'/CacheWarmingKernel/cache'; return sys_get_temp_dir().'/'.Kernel::VERSION.'/CacheWarmingKernel/cache/'.$this->environment;
} }
public function getLogDir() public function getLogDir()