public function isAllowed($what, $content = null)
{
return $this->handlers['user']->isAllowed($what, $content);
}
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); }