/** * @test */ public function setTagsForObjectStorageContainingTagsSetsTags() { $tag = new \MUM\BjrFreizeit\Domain\Model\Tags(); $objectStorageHoldingExactlyOneTags = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneTags->attach($tag); $this->subject->setTags($objectStorageHoldingExactlyOneTags); $this->assertAttributeEquals($objectStorageHoldingExactlyOneTags, 'tags', $this->subject); }