Explorar el Código

[DoctrineMongoDBBundle] Fixing a test that was passing in the configs array without the wrapping array.

Also rewrote this so that it's more clear.
Ryan Weaver hace 14 años
padre
commit
ac88b8a597

+ 4 - 1
src/Symfony/Bundle/DoctrineMongoDBBundle/Tests/ContainerTest.php

@@ -28,7 +28,10 @@ class ContainerTest extends TestCase
         )));
         $loader = new DoctrineMongoDBExtension();
         $container->registerExtension($loader);
-        $loader->load(array('mappings' => array('YamlBundle' => array())), $container);
+
+        $configs = array();
+        $configs[] = array('mappings' => array('YamlBundle' => array()));
+        $loader->load($configs, $container);
 
         return $container;
     }