Example #1
0
 /**
  * @test
  */
 public function removeParticipantFromObjectStorageHoldingParticipants()
 {
     $participant = new \PoiCom\PcEventScheduler\Domain\Model\Participant();
     $participantsObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $participantsObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($participant));
     $this->inject($this->subject, 'participants', $participantsObjectStorageMock);
     $this->subject->removeParticipant($participant);
 }