Procházet zdrojové kódy

Fixed creation of mock for methods that are necessary.

Martin Hasoň před 10 roky
rodič
revize
38a414e3d3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Tests/SonataAdminBundleTest.php

+ 1 - 1
Tests/SonataAdminBundleTest.php

@@ -28,7 +28,7 @@ class SonataAdminBundleTest extends \PHPUnit_Framework_TestCase
 {
     public function testBuild()
     {
-        $containerBuilder = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
+        $containerBuilder = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder', array('addCompilerPass'));
 
         $containerBuilder->expects($this->exactly(3))
             ->method('addCompilerPass')