/** * 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()); }