Procházet zdrojové kódy

fix failing tests, application requires container

Fixes #3622
Michael Schramm před 9 roky
rodič
revize
4821ca638e
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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();