[DoctrineBundle] fixed unit tests for previous merge

This commit is contained in:
Fabien Potencier 2011-07-12 20:16:16 +02:00
parent 362aa330b0
commit 3825a842d7
2 changed files with 2 additions and 0 deletions

View File

@ -689,6 +689,7 @@ abstract class AbstractDoctrineExtensionTest extends TestCase
'kernel.debug' => false,
'kernel.bundles' => $map,
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.environment' => 'test',
'kernel.root_dir' => __DIR__.'/../../../../../' // src dir
)));
}

View File

@ -35,6 +35,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
'kernel.debug' => false,
'kernel.bundles' => array('YamlBundle' => 'Fixtures\Bundles\YamlBundle\YamlBundle'),
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.environment' => 'test',
'kernel.root_dir' => __DIR__.'/../../../../' // src dir
)));
$container->set('annotation_reader', new AnnotationReader());