瀏覽代碼

Fixed creation of mock for methods that are necessary.

Martin Hasoň 10 年之前
父節點
當前提交
38a414e3d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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')