/** * @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; }
public function testGetType() { $this->assertEquals(Navigation::NAV_INSTALLER, $this->navigation->getType()); }