Преглед на файлове

fix failing tests, application requires container

Fixes #3622
Michael Schramm преди 9 години
родител
ревизия
4821ca638e
променени са 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();