Ejemplo n.º 1
0
 /**
  * @test
  */
 public function removePostFromObjectStorageHoldingPost()
 {
     $post = new \Dawin\LgLgRbBlog\Domain\Model\Post();
     $postObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $postObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($post));
     $this->inject($this->subject, 'post', $postObjectStorageMock);
     $this->subject->removePost($post);
 }