瀏覽代碼

Fixed Tests/Security/Handler/NoopSecurityHandlerTest. NoopSecurityHandler should use AdminInterface as first parameter.

Leszek 13 年之前
父節點
當前提交
ad9d94311e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Tests/Security/Handler/NoopSecurityHandlerTest.php

+ 3 - 3
Tests/Security/Handler/NoopSecurityHandlerTest.php

@@ -18,7 +18,7 @@ class NoopSecurityHandlerTest extends \PHPUnit_Framework_TestCase
     {
         $handler = new NoopSecurityHandler;
 
-        $this->assertTrue($handler->isGranted(array('TOTO')));
-        $this->assertTrue($handler->isGranted('TOTO'));
+        $this->assertTrue($handler->isGranted($this->getMock('Sonata\AdminBundle\Admin\AdminInterface'), array('TOTO')));
+        $this->assertTrue($handler->isGranted($this->getMock('Sonata\AdminBundle\Admin\AdminInterface'), 'TOTO'));
     }
-}
+}