Explorar o código

Fixed creation of mock for methods that are necessary.

Martin Hasoň %!s(int64=10) %!d(string=hai) anos
pai
achega
38a414e3d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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')