This Provider has a slightly lower priority than the main PageProvider but will trigger on any selection in the targeted field, including when "parent decides" is selected. This lets the PageProvider act on records that define a specific action to use and the SubPageProvider act on all other page records.
Inheritance: extends PageProvider, implements FluidTYPO3\Flux\Provider\ProviderInterface
 public function testGetTemplatePathAndFilename()
 {
     $expected = ExtensionManagementUtility::extPath('fluidpages', 'Tests/Fixtures/Templates/Page/Dummy.html');
     $dataFieldName = 'tx_fed_page_flexform_sub';
     $fieldName = 'tx_fed_page_controller_action_sub';
     $service = $this->getMock('FluidTYPO3\\Fluidpages\\Service\\PageService', array('getPageTemplateConfiguration'));
     $instance = new SubPageProvider();
     $instance->setTemplatePaths(array('templateRootPath' => 'EXT:fluidpages/Tests/Fixtures/Templates/'));
     $instance->injectPageService($service);
     $record = array($fieldName => 'Fluidpages->dummy');
     $service->expects($this->any())->method('getPageTemplateConfiguration')->willReturn($record);
     $instance->trigger($record, NULL, $dataFieldName);
     $result = $instance->getTemplatePathAndFilename($record);
     $this->assertEquals($expected, $result);
 }