/**
  * Test if related files can be set
  *
  * @test
  * @return void
  */
 public function relatedFilesCanBeSet()
 {
     $file = new Tx_News_Domain_Model_File();
     $file->setTitle('fo');
     $related = new Tx_Extbase_Persistence_ObjectStorage();
     $related->attach($file);
     $this->newsDomainModelInstance->setRelatedFiles($related);
     $this->assertEquals($related, $this->newsDomainModelInstance->getRelatedFiles());
 }
Esempio n. 2
0
 /**
  * Test if doc is not an image
  *
  * @test
  * @return void
  */
 public function wordFileIsNotAnImage()
 {
     $this->fileDomainModelInstance->setFile('fileadmin/fo.docx');
     $this->assertEquals(FALSE, $this->fileDomainModelInstance->getIsImageFile());
 }