Преглед изворни кода

[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 пре 14 година
родитељ
комит
ac88b8a597
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/Symfony/Bundle/DoctrineMongoDBBundle/Tests/ContainerTest.php

+ 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;
     }