Example #1
0
 /**
  * @test
  */
 public function removeRegistrationFromObjectStorageHoldingRegistration()
 {
     $registration = new Registration();
     $registrationObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $registrationObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($registration));
     $this->inject($this->subject, 'registration', $registrationObjectStorageMock);
     $this->subject->removeRegistration($registration);
 }