/**
* @test
*/
public function canRegisterStandaloneTemplateForContentObject()
{
$service = $this->createFluxServiceInstance();
$variables = array('test' => 'test');
$paths = array('templateRootPath' => 'EXT:flux/Resources/Private/Templates');
$extensionKey = 'fake';
$contentObjectType = 'void';
$providerClassName = 'FluidTYPO3\\Flux\\Provider\\ProviderInterface';
$relativeTemplatePathAndFilename = self::FIXTURE_TEMPLATE_ABSOLUTELYMINIMAL;
$record = Records::$contentRecordWithoutParentAndWithoutChildren;
$record['CType'] = $contentObjectType;
$absoluteTemplatePathAndFilename = GeneralUtility::getFileAbsFileName($relativeTemplatePathAndFilename);
$configurationSectionName = 'Configuration';
Core::registerFluidFlexFormContentObject($extensionKey, $contentObjectType, $relativeTemplatePathAndFilename, $variables, $configurationSectionName, $paths);
$detectedProvider = $service->resolvePrimaryConfigurationProvider('tt_content', NULL, $record, $extensionKey);
$this->assertInstanceOf($providerClassName, $detectedProvider);
$this->assertSame($extensionKey, $detectedProvider->getExtensionKey($record));
$this->assertSame($absoluteTemplatePathAndFilename, $detectedProvider->getTemplatePathAndFilename($record));
$this->assertSame(PathUtility::translatePath($paths), $detectedProvider->getTemplatePaths($record));
}