/** * @covers \Magento\Backend\Block\Widget\Grid\Column::getRenderer * @covers \Magento\Backend\Block\Widget\Grid\Column::setRendererType */ public function testGetRendererWhenUseCustomRenderer() { $this->_block->setData('type', 'custom_type'); $this->_block->setRendererType('custom_type', 'StdClass'); $this->_blockMock->expects($this->once())->method('setColumn')->will($this->returnSelf()); $this->_layoutMock->expects($this->once())->method('createBlock')->with('StdClass')->will($this->returnValue($this->_blockMock)); $this->assertEquals($this->_blockMock, $this->_block->getRenderer()); }