예제 #1
0
 /**
  * @test
  */
 public function removeExludePagesFromObjectStorageHoldingExcludePages()
 {
     $page = new \DERHANSEN\SfBanners\Domain\Model\Page();
     $pageObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', false);
     $pageObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($page));
     $this->inject($this->fixture, 'excludepages', $pageObjectStorageMock);
     $this->fixture->removeExcludepages($page);
 }