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