Skip to content

Commit

Permalink
Merge pull request #389 from alcaeus/fix-symfony-3.2-tests
Browse files Browse the repository at this point in the history
Fix tests when running with Symfony 3.2
  • Loading branch information
malarzm committed Dec 3, 2016
2 parents f2b4dfd + c092266 commit bdef7a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Tests/ContainerTest.php
Expand Up @@ -28,11 +28,12 @@ class ContainerTest extends TestCase
protected function setUp()
{
$this->container = new ContainerBuilder(new ParameterBag([
'kernel.bundles' => [],
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.root_dir' => sys_get_temp_dir(),
'kernel.bundles' => [],
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.root_dir' => sys_get_temp_dir(),
'kernel.environment' => 'test',
'kernel.debug' => true,
'kernel.name' => 'kernel',
'kernel.debug' => true,
]));

$this->container->setDefinition('annotation_reader', new Definition(AnnotationReader::class));
Expand Down
2 changes: 2 additions & 0 deletions Tests/DependencyInjection/DoctrineMongoDBExtensionTest.php
Expand Up @@ -36,6 +36,7 @@ public function buildMinimalContainer()
{
$container = new ContainerBuilder(new ParameterBag([
'kernel.root_dir' => __DIR__,
'kernel.name' => 'kernel',
'kernel.environment' => 'test',
'kernel.debug' => 'true',
'kernel.bundles' => [],
Expand Down Expand Up @@ -81,6 +82,7 @@ private function getContainer($bundles = 'YamlBundle')
'kernel.bundles' => $map,
'kernel.cache_dir' => sys_get_temp_dir(),
'kernel.environment' => 'test',
'kernel.name' => 'kernel',
'kernel.root_dir' => __DIR__.'/../../' // src dir
]));
}
Expand Down
1 change: 0 additions & 1 deletion Tests/DependencyInjection/Fixtures/config/yml/full.yml
Expand Up @@ -10,7 +10,6 @@ doctrine_mongodb:
hydrator_namespace: Test_Hydrators
proxy_dir: "%kernel.cache_dir%/doctrine/odm/mongodb/Test_Proxies"
proxy_namespace: Test_Proxies
proxy_namespace: Test_Proxies
persistent_collection_dir: "%kernel.cache_dir%/doctrine/odm/mongodb/Test_Pcolls"
persistent_collection_namespace: Test_Pcolls

Expand Down

0 comments on commit bdef7a7

Please sign in to comment.