Example #1
0
 /**
  * @test
  */
 public function setParticipantsForObjectStorageContainingParticipantSetsParticipants()
 {
     $participant = new \PoiCom\PcEventScheduler\Domain\Model\Participant();
     $objectStorageHoldingExactlyOneParticipants = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $objectStorageHoldingExactlyOneParticipants->attach($participant);
     $this->subject->setParticipants($objectStorageHoldingExactlyOneParticipants);
     $this->assertAttributeEquals($objectStorageHoldingExactlyOneParticipants, 'participants', $this->subject);
 }