public function widgets($location = null, $zone = 'frontend', $wrapper = 'widgetwrapper.twig') { return $this->handlers['widget']->widgets($location, $zone, $wrapper); }
public function testWidget() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['widget'] = $this->getMockHandler('WidgetHandler', 'widgets'); $twig = new TwigExtension($app, $handlers, true); $twig->widgets(null, null); }