public function testRenderInheritanceField(array $parameters, array $settings, $expectsEmpty)
{
$typoScript = array('plugin.' => array('tx_fluidpages.' => $settings));
/** @var ConfigurationManager|\PHPUnit_Framework_MockObject_MockObject $configurationManager */
$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);
}
}