/**
  * @param bool|string $expected
  * @param array $page
  * @param array $rootLine
  * @test
  * @dataProvider selectedCombinedIdentifierIsDeterminedDataProvider
  */
 public function selectedCombinedIdentifierIsDetermined($expected, array $page, array $rootLine)
 {
     $pageId = $page['uid'];
     $this->backendLayoutView->expects($this->once())->method('getPage')->with($this->equalTo($pageId))->will($this->returnValue($page));
     $this->backendLayoutView->expects($this->any())->method('getRootLine')->with($this->equalTo($pageId))->will($this->returnValue($rootLine));
     $selectedCombinedIdentifier = $this->backendLayoutView->_call('getSelectedCombinedIdentifier', $pageId);
     $this->assertEquals($expected, $selectedCombinedIdentifier);
 }
 /**
  * Creates a backend layout with the default configuration.
  *
  * @return BackendLayout
  */
 protected function createDefaultBackendLayout()
 {
     return BackendLayout::create('default', 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.backend_layout.default', \TYPO3\CMS\Backend\View\BackendLayoutView::getDefaultColumnLayout());
 }
 /**
  * Creates a backend layout with the default configuration.
  *
  * @return BackendLayout
  */
 protected function createDefaultBackendLayout()
 {
     return BackendLayout::create('default', 'LLL:EXT:cms/locallang_tca.xlf:pages.backend_layout.default', \TYPO3\CMS\Backend\View\BackendLayoutView::getDefaultColumnLayout());
 }
 /**
  * GetDefaultBackendLayout
  *
  * @return BackendLayout
  */
 private function getDefaultBackendLayout()
 {
     return BackendLayout::create('default', 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.backend_layout.default', BackendLayoutView::getDefaultColumnLayout());
 }
 /**
  * Gets the selected backend layout
  *
  * @param integer $id
  * @return array|NULL $backendLayout
  */
 public function getSelectedBackendLayout($id)
 {
     $this->backendLayout->preProcessBackendLayoutPageUid($id);
     $backendLayout = parent::getSelectedBackendLayout($id);
     $this->backendLayout->postProcessBackendLayout($id, $backendLayout);
     return array('__config' => $backendLayout['__config'], '__items' => $backendLayout['__items'], '__colPosList' => $backendLayout['__colPosList']);
 }
 /**
  * Get backend layout configuration
  *
  * @return array
  */
 public function getBackendLayoutConfiguration()
 {
     $backendLayoutUid = $this->getSelectedBackendLayoutUid($this->id);
     if (!$backendLayoutUid) {
         return array('config' => \TYPO3\CMS\Backend\View\BackendLayoutView::getDefaultColumnLayout());
     }
     return \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord('backend_layout', intval($backendLayoutUid));
 }