Bolt\Tests\Twig\UserHandlerTest::testIsAllowedArray PHP Method

testIsAllowedArray() public method

public testIsAllowedArray ( )
    public function testIsAllowedArray()
    {
        $app = $this->getApp();
        $handler = new UserHandler($app);
        $users = $this->getMockUsers();
        $users->expects($this->atLeastOnce())->method('isAllowed')->will($this->returnValue(true));
        $app['users'] = $users;
        $result = $handler->isAllowed('koala', []);
        $this->assertTrue($result);
    }