/**
  * {@inheritdoc}
  */
 public function getResponse()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getResponse');
     if (!$pluginInfo) {
         return parent::getResponse();
     } else {
         return $this->___callPlugins('getResponse', func_get_args(), $pluginInfo);
     }
 }
Example #2
0
 /**
  * Test for getResponse med. Checks that response headers are set correctly
  *
  * @test
  * @covers \Magento\Framework\App\Action\AbstractAction::getResponse
  */
 public function testResponseHeaders()
 {
     $this->assertEmpty($this->actionAbstract->getResponse()->getHeaders());
 }
Example #3
0
 /**
  * Test for getResponse method
  *
  * @test
  * @covers \Magento\Framework\App\Action\AbstractAction::getResponse
  */
 public function testGetResponse()
 {
     $this->assertEquals($this->_response, $this->_actionAbstract->getResponse());
 }