/**
* @test
*/
public function canRegisterStandaloneTemplateForPlugin()
{
$service = $this->createFluxServiceInstance();
$variables = array('test' => 'test');
$paths = array('templateRootPath' => 'EXT:flux/Resources/Private/Templates');
$extensionKey = 'more_fake';
$pluginType = 'void';
$fieldName = NULL;
$providerClassName = 'FluidTYPO3\\Flux\\Provider\\ProviderInterface';
$relativeTemplatePathAndFilename = self::FIXTURE_TEMPLATE_ABSOLUTELYMINIMAL;
$record = Records::$contentRecordWithoutParentAndWithoutChildren;
$record['list_type'] = $pluginType;
$absoluteTemplatePathAndFilename = GeneralUtility::getFileAbsFileName($relativeTemplatePathAndFilename);
$configurationSectionName = 'Configuration';
Core::registerFluidFlexFormPlugin($extensionKey, $pluginType, $relativeTemplatePathAndFilename, $variables, $configurationSectionName, $paths);
$detectedProvider = $service->resolvePrimaryConfigurationProvider('tt_content', $fieldName, $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));
}