/** * @test */ public function setAttendeesForObjectStorageContainingAttendeesSetsAttendees() { $attendee = new \KevinDitscheid\KdCalendar\Domain\Model\Attendees(); $objectStorageHoldingExactlyOneAttendees = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $objectStorageHoldingExactlyOneAttendees->attach($attendee); $this->subject->setAttendees($objectStorageHoldingExactlyOneAttendees); $this->assertAttributeEquals($objectStorageHoldingExactlyOneAttendees, 'attendees', $this->subject); }