public function testGlobalAction() { $this->renderer->expects($this->once())->method('renderGlobalAction')->with($this->identicalTo($grid = $this->createGridViewMock()), $this->identicalTo($action = $this->createActionMock()))->will($this->returnValue($result = '<div>result</div>')); $this->assertSame($result, $this->twig->createTemplate('{{ lug_grid_global_action(grid, action) }}')->render(['grid' => $grid, 'action' => $action])); }
/** * {@inheritdoc} */ public function renderGlobalAction(GridViewInterface $grid, ActionInterface $action) { return $this->renderer->renderGlobalAction($grid, $action); }