function it_delegates_grid_rendering_to_the_helper(GridHelper $gridHelper, GridView $gridView) { $gridHelper->renderGrid($gridView, null)->willReturn('<html>Grid!</html>'); $this->renderGrid($gridView)->shouldReturn('<html>Grid!</html>'); }
/** * @param GridView $gridView * @param string $template * @param array $variables * * @return mixed */ public function renderGrid(GridView $gridView, $template = null) { return $this->gridHelper->renderGrid($gridView, $template); }