isAllowed() public method

See also: Bolt\Twig\Handler\UserHandler::isAllowed()
public isAllowed ( $what, $content = null )
Example #1
0
 public function testIsAllowed()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['user'] = $this->getMockHandler('UserHandler', 'isAllowed');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->isAllowed(null, null);
 }