浏览代码

Merge pull request #3624 from wodka/patch-2

fix failing tests, application requires container
Oskar Stark 9 年之前
父节点
当前提交
87a35f1d67
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Tests/Command/GenerateAdminCommandTest.php

+ 4 - 0
Tests/Command/GenerateAdminCommandTest.php

@@ -72,6 +72,10 @@ class GenerateAdminCommandTest extends \PHPUnit_Framework_TestCase
             ->with($this->equalTo('AcmeDemoBundle'))
             ->will($this->returnValue($bundle));
 
+        $kernel->expects($this->any())
+            ->method('getContainer')
+            ->will($this->returnValue($this->container));
+
         $this->application = new Application($kernel);
         $this->command = new GenerateAdminCommand();