Exemplo n.º 1
0
 /**
  * @test
  */
 public function addAttendeeToObjectStorageHoldingAttendees()
 {
     $attendee = new \KevinDitscheid\KdCalendar\Domain\Model\Attendees();
     $attendeesObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('attach'), array(), '', FALSE);
     $attendeesObjectStorageMock->expects($this->once())->method('attach')->with($this->equalTo($attendee));
     $this->inject($this->subject, 'attendees', $attendeesObjectStorageMock);
     $this->subject->addAttendee($attendee);
 }