/** * @test */ public function setPostsForObjectStorageContainingPostSetsPosts() { $post = new \Lobcher\Simpleblog\Domain\Model\Post(); $objectStorageHoldingExactlyOnePosts = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOnePosts->attach($post); $this->subject->setPosts($objectStorageHoldingExactlyOnePosts); $this->assertAttributeEquals($objectStorageHoldingExactlyOnePosts, 'posts', $this->subject); }