/** * @dataProvider setCodeProvider */ public function testSetCode($code, $expectedCode) { $this->model->terminateOnSend(false); $this->model->setCode($code); $result = $this->model->sendResponse(); $this->assertEquals($expectedCode, $result); }
/** * {@inheritdoc} */ public function catchException(App\Bootstrap $bootstrap, \Exception $exception) { $this->response->setBody($exception->getMessage()); $this->response->terminateOnSend(false); $this->response->sendResponse(); return false; }
public function setUp() { $this->model = new \Magento\Framework\App\Console\Response(); $this->model->terminateOnSend(false); }
/** * Launch application. Prevent application termination on sent response, initialize DB connection. * * @return \Magento\Framework\App\ResponseInterface */ public function launch() { $this->_response->terminateOnSend(false); $this->_storeManager->getStores(false, true); return $this->_response; }
/** * Run application * * @return \Magento\Framework\App\ResponseInterface */ public function launch() { $this->response->terminateOnSend(false); $this->updateUserConfigData(); return $this->response; }