فهرست منبع

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