@@ 547-551 (lines=5) @@ | ||
544 | ||
545 | $modelTranslations = []; |
|
546 | ||
547 | foreach ($country->translations as $translation) { |
|
548 | foreach ($country->translatedAttributes as $attr) { |
|
549 | $modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
|
550 | } |
|
551 | } |
|
552 | ||
553 | $expectedTranslations = [ |
|
554 | 'en' => ['name' => 'Ukraine'], |
|
@@ 573-577 (lines=5) @@ | ||
570 | ||
571 | $modelTranslations = []; |
|
572 | ||
573 | foreach ($country->translations as $translation) { |
|
574 | foreach ($country->translatedAttributes as $attr) { |
|
575 | $modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
|
576 | } |
|
577 | } |
|
578 | ||
579 | $expectedTranslations = [ |
|
580 | 'en' => ['name' => 'Ukraine'], |