convertFileReferenceToTemplatePathAndFilename() public method

public convertFileReferenceToTemplatePathAndFilename ( string $reference ) : string
$reference string
return string
 /**
  * @return string
  */
 public function rawAction()
 {
     $record = $this->getRecord();
     $templateFileReference = $record['tx_fluidpages_templatefile'];
     $templatePathAndFilename = $this->pageConfigurationService->convertFileReferenceToTemplatePathAndFilename($templateFileReference);
     $paths = $this->pageConfigurationService->getViewConfigurationByFileReference($templateFileReference);
     $this->provider->setTemplatePathAndFilename($templatePathAndFilename);
     $this->view->setTemplatePathAndFilename($templatePathAndFilename);
     $this->view->setTemplateRootPath($paths['templateRootPath']);
     $this->view->setPartialRootPath($paths['partialRootPath']);
     $this->view->setLayoutRootPath($paths['layoutRootPath']);
 }
 /**
  * @dataProvider getConvertFileReferenceToTemplatePathAndFilenameTestValues
  * @param string $reference
  * @param string|NULL $resourceFactoryOutput
  * @param string $expected
  * @return void
  */
 public function testConvertFileReferenceToTemplatePathAndFilename($reference, $resourceFactoryOutput, $expected)
 {
     $instance = new ConfigurationService();
     if (NULL !== $resourceFactoryOutput) {
         $resourceFactory = $this->getMock('TYPO3\\CMS\\Core\\Resource\\ResourceFactory', array('getFileObjectFromCombinedIdentifier'));
         $resourceFactory->expects($this->once())->method('getFileObjectFromCombinedIdentifier')->with($reference)->willReturn($resourceFactoryOutput);
         $instance->injectResourceFactory($resourceFactory);
     }
     $result = $instance->convertFileReferenceToTemplatePathAndFilename($reference);
     $this->assertEquals($expected, $result);
 }