@@ 598-602 (lines=5) @@ | ||
595 | ||
596 | $modelTranslations = []; |
|
597 | ||
598 | foreach ($country->translations as $translation) { |
|
599 | foreach ($country->translatedAttributes as $attr) { |
|
600 | $modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
|
601 | } |
|
602 | } |
|
603 | ||
604 | $expectedTranslations = [ |
|
605 | 'en' => ['name' => 'Ukraine'], |
|
@@ 624-628 (lines=5) @@ | ||
621 | ||
622 | $modelTranslations = []; |
|
623 | ||
624 | foreach ($country->translations as $translation) { |
|
625 | foreach ($country->translatedAttributes as $attr) { |
|
626 | $modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
|
627 | } |
|
628 | } |
|
629 | ||
630 | $expectedTranslations = [ |
|
631 | 'en' => ['name' => 'Ukraine'], |