/**
  * @return ViewModel
  */
 public function indexAction()
 {
     $view = new ViewModel([
         'timezone' => $this->list->getTimezoneList(),
         'currency' => $this->list->getCurrencyList(),
         'language' => $this->list->getLocaleList(),
         'isSampledataEnabled' => $this->sampleData->isDeployed(),
         'isSampleDataInstalled' => $this->sampleData->isInstalledSuccessfully(),
         'isSampleDataErrorInstallation' => $this->sampleData->isInstallationError()
     ]);
     $view->setTerminal(true);
     return $view;
 }
Exemple #2
0
 /**
  * Test SampleData installation check method.
  * Can be tested only negative case because file_exists method used in the tested class
  */
 public function testIsInstalledSuccessfully()
 {
     $this->assertFalse($this->sampleDataInstall->isInstalledSuccessfully());
 }