public function testAddBackendLayouts()
{
/** @var BackendLayoutDataProvider|\PHPUnit_Framework_MockObject_MockObject $instance */
$instance = $this->getMock('FluidTYPO3\\Fluidpages\\Backend\\BackendLayoutDataProvider', array('getBackendLayoutConfiguration', 'encodeTypoScriptArray'));
$instance->expects($this->once())->method('getBackendLayoutConfiguration')->with(1)->willReturn(array('conf'));
$instance->expects($this->once())->method('encodeTypoScriptArray')->with(array('conf'))->willReturn('conf');
$collection = new BackendLayoutCollection('collection');
$context = new DataProviderContext();
$context->setPageId(1);
$instance->addBackendLayouts($context, $collection);
$this->assertEquals('conf', reset($collection->getAll())->getConfiguration());
}