public function testRender() { $content = '<content>test</content>'; $this->raw->setContents($content); $this->response->expects($this->once())->method('setBody')->with($content); $this->assertSame($this->raw, $this->raw->renderResult($this->response)); }
/** * {@inheritdoc} */ public function renderResult(\Magento\Framework\App\ResponseInterface $response) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'renderResult'); if (!$pluginInfo) { return parent::renderResult($response); } else { return $this->___callPlugins('renderResult', func_get_args(), $pluginInfo); } }