Beispiel #1
0
 /**
  * @test
  */
 public function removeReminderFromObjectStorageHoldingReminders()
 {
     $reminder = new \KevinDitscheid\KdCalendar\Domain\Model\Reminder();
     $remindersObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $remindersObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($reminder));
     $this->inject($this->subject, 'reminders', $remindersObjectStorageMock);
     $this->subject->removeReminder($reminder);
 }