public function testDatagridColumnHeaderRenderBlock()
 {
     $datagrid = $this->createDatagrid('grid');
     $datagrid->setData([['title' => 'This is value 1']]);
     $view = $datagrid->createView();
     $headerView = $view->getColumn('title');
     $template = $this->prophesize('\\Twig_Template');
     $template->getParent([])->willReturn(false);
     $template->hasBlock('datagrid_grid_column_name_title_header')->willReturn(false)->shouldBeCalled();
     $template->hasBlock('datagrid_grid_column_type_text_header')->willReturn(false)->shouldBeCalled();
     $template->hasBlock('datagrid_column_name_title_header')->willReturn(false)->shouldBeCalled();
     $template->hasBlock('datagrid_column_type_text_header')->willReturn(false)->shouldBeCalled();
     $template->hasBlock('datagrid_grid_column_header')->willReturn(false)->shouldBeCalled();
     $template->hasBlock('datagrid_column_header')->willReturn(true)->shouldBeCalled();
     $template->displayBlock('datagrid_column_header', ['header' => $headerView, 'label' => 'Title', 'translation_domain' => null, 'vars' => [], 'global_var' => 'global_value'])->willReturn(true);
     $this->extension->setBaseTheme($template->reveal());
     $this->extension->datagridColumnHeader($headerView);
 }