/** * @test */ public function setVotingsForObjectStorageContainingVotingSetsVotings() { $voting = new \Visol\EasyvoteEducation\Domain\Model\Voting(); $objectStorageHoldingExactlyOneVotings = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneVotings->attach($voting); $this->subject->setVotings($objectStorageHoldingExactlyOneVotings); $this->assertAttributeEquals($objectStorageHoldingExactlyOneVotings, 'votings', $this->subject); }