/**
  *
  * @param string                               $identifier
  * @param \HDNET\Importr\Domain\Model\Strategy $strategy
  *
  * @return void
  */
 public function previewAction($identifier, Strategy $strategy)
 {
     $file = $this->resourceFactory->getObjectFromCombinedIdentifier($identifier);
     $this->view->assign('filepath', $file->getPublicUrl());
     $this->view->assign('strategy', $strategy);
     $previewData = $this->importManager->getPreview($strategy, $file->getPublicUrl());
     $this->view->assign('preview', $previewData);
 }
Exemple #2
0
 /**
  * @test
  */
 public function is_update_interval_updateable()
 {
     $manager = new Manager();
     $manager->setUpdateInterval(42);
     $this->assertEquals(42, $manager->getUpdateInterval());
 }