public function configurePageLayoutViewForLanguageModeSetsSpecialVariablesInLanguageMode()
{
$languageService = $this->getMock('TYPO3\\CMS\\Lang\\LanguageService', array('getLL'));
$languageService->expects($this->once())->method('getLL');
$view = $this->getMock('FluidTYPO3\\Flux\\View\\PageLayoutView', array('initializeLanguages'));
$view->expects($this->once())->method('initializeLanguages');
$instance = $this->getMock($this->createInstanceClassName(), array('getPageModuleSettings', 'getLanguageService'));
$instance->expects($this->once())->method('getPageModuleSettings')->willReturn(array('function' => 2));
$instance->expects($this->once())->method('getLanguageService')->willReturn($languageService);
$result = $this->callInaccessibleMethod($instance, 'configurePageLayoutViewForLanguageMode', $view);
$this->assertSame($view, $result);
$this->assertEquals(1, $result->tt_contentConfig['languageMode']);
}