Browse Source

Fixed creation of mock for methods that are necessary.

Martin Hasoň 10 years ago
parent
commit
38a414e3d3
1 changed files with 1 additions and 1 deletions
  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')