/**
  * @return void
  */
 public function testAddBackendLayouts()
 {
     $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());
 }