public function listTemplates($filter = '')
{
return $this->handlers['record']->listTemplates($filter, $this->safe);
}
public function testListTemplates() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['record'] = $this->getMockHandler('RecordHandler', 'listTemplates'); $twig = new TwigExtension($app, $handlers, true); $twig->listTemplates(null, null); }