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