/** * @test */ public function setCategoryForObjectStorageContainingCategorySetsCategory() { $category = new \DERHANSEN\SfBanners\Domain\Model\Category(); $objectStorageHoldingExactlyOneCategory = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneCategory->attach($category); $this->fixture->setCategory($objectStorageHoldingExactlyOneCategory); $this->assertAttributeEquals($objectStorageHoldingExactlyOneCategory, 'category', $this->fixture); }