/** * @test */ public function initializeBackEndWithBackEndUserLanguageGermanSetsLanguageGerman() { $backEndUser = new Tx_Oelib_Model_BackEndUser(); $backEndUser->setDefaultLanguage('de'); Tx_Oelib_BackEndLoginManager::getInstance()->setLoggedInUser($backEndUser); self::assertSame('de', Tx_Oelib_TranslatorRegistry::get('oelib')->getLanguageKey()); }
/** * @test */ public function hasLanguageWithDefaultLanguageSetReturnsFalse() { $this->subject->setData(array()); $this->subject->setDefaultLanguage('default'); self::assertFalse($this->subject->hasLanguage()); }