public function testDontApplyLocalisationToPageValuesInDefaultLanguage() { $GLOBALS['TSFE'] = (object) array('page' => array('title' => 'foo'), 'sys_language_uid' => 0); $recordService = $this->getMock('FluidTYPO3\\Service\\RecordService', array('get')); $recordService->expects($this->never())->method('get'); $subject = $this->getAccessibleMockForAbstractClass('FluidTYPO3\\Flux\\Provider\\AbstractProvider'); $subject->_set('recordService', $recordService); $this->assertEquals(array('title' => 'foo'), $this->callInaccessibleMethod($subject, 'getPageValues')); }