Exemplo n.º 1
0
 public function testTranslationWithFallbackLocale()
 {
     $this->translatable->setLocales(['en_EN']);
     $this->translatable->setFallbackLocale($fallbackLocale = 'fr_FR');
     $translation = $this->createTranslationMock();
     $translation->expects($this->any())->method('getLocale')->will($this->returnValue($fallbackLocale));
     $this->translatable->addTranslation($translation);
     $this->assertSame($translation, $this->translatable->getTranslation());
 }