NoopSecurityHandlerTest.php 652 B

123456789101112131415161718192021222324
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Tests\Admin\Security\Acl\Permission;
  11. use Sonata\AdminBundle\Security\Handler\NoopSecurityHandler;
  12. class NoopSecurityHandlerTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testNoop()
  15. {
  16. $handler = new NoopSecurityHandler;
  17. $this->assertTrue($handler->isGranted(array('TOTO')));
  18. $this->assertTrue($handler->isGranted('TOTO'));
  19. }
  20. }