Example #1
0
 /**
  * @test
  * @return void
  */
 public function addRelatedAddsRelatedForRelated()
 {
     $event = new \DERHANSEN\SfEventMgt\Domain\Model\Event();
     $relatedObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', ['attach'], [], '', false);
     $relatedObjectStorageMock->expects($this->once())->method('attach')->with($this->equalTo($event));
     $this->inject($this->subject, 'related', $relatedObjectStorageMock);
     $this->subject->addRelated($event);
 }