コード例 #1
0
ファイル: RawTest.php プロジェクト: pradeep-wagento/magento2
 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));
 }
コード例 #2
0
 /**
  * {@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);
     }
 }