/** * @test */ public function setBezirkeForObjectStorageContainingBezirkSetsBezirke() { $bezirke = new \Fakturaberlin\Werkstattsuche\Domain\Model\Bezirk(); $objectStorageHoldingExactlyOneBezirke = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneBezirke->attach($bezirke); $this->subject->setBezirke($objectStorageHoldingExactlyOneBezirke); $this->assertAttributeEquals($objectStorageHoldingExactlyOneBezirke, 'bezirke', $this->subject); }