FluidTYPO3\Fluidpages\Tests\Unit\Backend\PageLayoutSelectorTest::testRenderInheritanceField PHP Method

testRenderInheritanceField() public method

public testRenderInheritanceField ( array $parameters, array $settings, boolean $expectsEmpty )
$parameters array
$settings array
$expectsEmpty boolean
    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);
        }
    }