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

testRenderOptions() public method

public testRenderOptions ( string $extension, string $expectedTitle ) : void
$extension string
$expectedTitle string
return void
    public function testRenderOptions($extension, $expectedTitle)
    {
        $instance = $this->getMock('FluidTYPO3\\Fluidpages\\Backend\\PageLayoutSelector', array('renderOption'));
        $instance->expects($this->any())->method('renderOption')->willReturn('');
        $forms = array(Form::create(array('extensionName' => $extension)));
        $result = $this->callInaccessibleMethod($instance, 'renderOptions', $extension, $forms, array());
        $this->assertContains($expectedTitle, $result);
    }