/** * @test */ public function setCommentsForObjectStorageContainingCommentSetsComments() { $comment = new \Lobcher\Simpleblog\Domain\Model\Comment(); $objectStorageHoldingExactlyOneComments = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneComments->attach($comment); $this->subject->setComments($objectStorageHoldingExactlyOneComments); $this->assertAttributeEquals($objectStorageHoldingExactlyOneComments, 'comments', $this->subject); }