Esempio n. 1
0
 /**
  * @return ViewModel
  */
 public function listAction()
 {
     $this->createDirForm->build();
     $this->uploadFileForm->build();
     $this->deleteFileForm->build();
     $viewData = ['list' => $this->getFileManager()->getList(), 'currentDir' => $this->getCurrentPath(), 'createForm' => $this->createDirForm, 'uploadForm' => $this->uploadFileForm, 'deleteForm' => $this->deleteFileForm];
     $this->layout('layout/filemanager.phtml');
     return new ViewModel($viewData);
 }
 /**
  * @covers DmFileman\Form\CreateDirectoryForm
  */
 public function testBuild()
 {
     $this->sut->build();
     $this->assertInstanceOf('Zend\\Form\\Element\\Text', $this->sut->get(Form::DIRECTORY));
     $this->assertInstanceOf('Zend\\Form\\Element\\Csrf', $this->sut->get(Form::SECURITY));
 }