@@ 637-641 (lines=5) @@ | ||
634 | ||
635 | $modelTranslations = []; |
|
636 | ||
637 | foreach ($country->translations as $translation) { |
|
638 | foreach ($country->translatedAttributes as $attr) { |
|
639 | $modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
|
640 | } |
|
641 | } |
|
642 | ||
643 | $expectedTranslations = [ |
|
644 | 'en' => ['name' => 'Ukraine'], |
|
@@ 663-667 (lines=5) @@ | ||
660 | ||
661 | $modelTranslations = []; |
|
662 | ||
663 | foreach ($country->translations as $translation) { |
|
664 | foreach ($country->translatedAttributes as $attr) { |
|
665 | $modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
|
666 | } |
|
667 | } |
|
668 | ||
669 | $expectedTranslations = [ |
|
670 | 'en' => ['name' => 'Ukraine'], |