/** * @return array|ViewModel */ public function headerBarAction() { if ($this->navigation->getType() === NavModel::NAV_UPDATER) { if ($this->status->isUpdateError() || $this->status->isUpdateInProgress()) { $this->view->setVariable('redirect', '../' . Environment::UPDATER_DIR . '/index.php'); } } $this->view->setTemplate('/magento/setup/navigation/header-bar.phtml'); $this->view->setTerminal(true); return $this->view; }
/** * Check if Cron job can be run * * @return bool */ private function checkRun() { return $this->deploymentConfig->isAvailable() && $this->readinessCheck->runReadinessCheck() && !$this->status->isUpdateInProgress() && !$this->status->isUpdateError(); }
public function testIsUpdateError() { $this->varReaderWriter->expects($this->once())->method('isExist')->willReturn(true); $this->assertTrue($this->status->isUpdateError()); }
/** * Check if Cron job can be run * * @return bool */ private function checkRun() { return $this->readinessCheck->runReadinessCheck() && !$this->status->isUpdateInProgress() && !$this->status->isUpdateError(); }