public function testRenderView() { $blockMock = $this->getMock(\Magelight\Block::class, [], [], '', false); \Magelight\Block::forgeMock($blockMock); $this->controller->setView(\Magelight\Block::class); $this->controller->init(); $blockMock->expects($this->once())->method('toHtml')->will($this->returnValue('HTML OUTPUT')); $this->responseMock->expects($this->once())->method('setContent')->will($this->returnSelf()); $this->responseMock->expects($this->once())->method('send'); $this->assertEquals($this->controller, $this->controller->renderView()); }