예제 #1
0
 /**
  * @test
  */
 public function versionOlCallsVersionOlOfPageSelectClassWithGivenRow()
 {
     $row = array('foo');
     $GLOBALS['TSFE'] = new \stdClass();
     $sysPageMock = $this->getMock('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
     $sysPageMock->expects($this->once())->method('versionOL')->with('sys_template', $row);
     $GLOBALS['TSFE']->sys_page = $sysPageMock;
     $this->templateService->versionOL($row);
 }