Beispiel #1
0
 /**
  * Test if related can be set
  *
  * @test
  * @return void
  */
 public function relatedFilesCanBeSet()
 {
     $file = new File();
     $file->setTitle('fo');
     $related = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $related->attach($file);
     $this->newsDomainModelInstance->setRelatedFiles($related);
     $this->assertEquals($related, $this->newsDomainModelInstance->getRelatedFiles());
 }
Beispiel #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());
 }