/**
  * Checks if getData() works with type "path"
  *
  * @test
  */
 public function getDataWithTypePath()
 {
     $filenameIn = $this->getUniqueId('someValue');
     $filenameOut = $this->getUniqueId('someValue');
     $this->templateServiceMock->expects($this->atLeastOnce())->method('getFileName')->with($filenameIn)->will($this->returnValue($filenameOut));
     $this->assertEquals($filenameOut, $this->subject->getData('path:' . $filenameIn));
 }
 /**
  * Checks if getData() works with type "path"
  *
  * @test
  */
 public function getDataWithTypePath()
 {
     $filenameIn = uniqid('someValue');
     $filenameOut = uniqid('someValue');
     $this->template->expects($this->atLeastOnce())->method('getFileName')->with($filenameIn)->will($this->returnValue($filenameOut));
     $this->assertEquals($filenameOut, $this->cObj->getData('path:' . $filenameIn));
 }
 /**
  * @test
  */
 public function getImgResourceHookGetsCalled()
 {
     $this->template->expects($this->atLeastOnce())->method('getFileName')->with('typo3/clear.gif')->will($this->returnValue('typo3/clear.gif'));
     $className = uniqid('tx_coretest');
     $getImgResourceHookMock = $this->getMock('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectGetImageResourceHookInterface', array('getImgResourcePostProcess'), array(), $className);
     $getImgResourceHookMock->expects($this->once())->method('getImgResourcePostProcess')->will($this->returnCallback(array($this, 'isGetImgResourceHookCalledCallback')));
     $getImgResourceHookObjects = array($getImgResourceHookMock);
     $this->cObj->_setRef('getImgResourceHookObjects', $getImgResourceHookObjects);
     $this->cObj->IMAGE($this->typoScriptImage);
 }