/** * {@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); } }
/** * 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()); }
/** * Test for getResponse method * * @test * @covers \Magento\Framework\App\Action\AbstractAction::getResponse */ public function testGetResponse() { $this->assertEquals($this->_response, $this->_actionAbstract->getResponse()); }