/**
* @dataProvider getRenderInheritanceFieldTestValues
* @param array $parameters
* @param array $settings
* @param boolean $expectsEmpty
*/
public function testRenderInheritanceField(array $parameters, array $settings, $expectsEmpty)
{
$typoScript = array('plugin.' => array('tx_fluidpages.' => $settings));
$configurationManager = $this->getMock('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager', array('getConfiguration'));
$configurationManager->expects($this->any())->method('getConfiguration')->willReturn($typoScript);
$instance = new PageLayoutSelector();
$instance->injectConfigurationManager($configurationManager);
$result = $this->callInaccessibleMethod($instance, 'renderInheritanceField', $parameters);
if (TRUE === $expectsEmpty) {
$this->assertEmpty($result);
} else {
$this->assertNotEmpty($result);
}
}