|
@@ 611-615 (lines=5) @@
|
| 608 |
|
|
| 609 |
|
$modelTranslations = []; |
| 610 |
|
|
| 611 |
|
foreach ($country->translations as $translation) { |
| 612 |
|
foreach ($country->translatedAttributes as $attr) { |
| 613 |
|
$modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
| 614 |
|
} |
| 615 |
|
} |
| 616 |
|
|
| 617 |
|
$expectedTranslations = [ |
| 618 |
|
'en' => ['name' => 'Ukraine'], |
|
@@ 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'], |