Пример #1
0
 function it_clones_new_translation_properly(TranslationInterface $translation)
 {
     $translation->getLocale()->willReturn('en');
     $translation->setTranslatable($this)->shouldBeCalled();
     $translation->acmeProperty = 'acmeProp';
     $this->addTranslation($translation);
     $this->setCurrentLocale('en');
     $translation = $this->translate();
     $translation->shouldImplement('Sylius\\Component\\Translation\\Model\\TranslationInterface');
     $translation->acmeProperty->shouldBe('acmeProp');
 }