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