|
@@ 582-586 (lines=5) @@
|
| 579 |
|
|
| 580 |
|
$modelTranslations = []; |
| 581 |
|
|
| 582 |
|
foreach ($country->translations as $translation) { |
| 583 |
|
foreach ($country->translatedAttributes as $attr) { |
| 584 |
|
$modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
| 585 |
|
} |
| 586 |
|
} |
| 587 |
|
|
| 588 |
|
$expectedTranslations = [ |
| 589 |
|
'en' => ['name' => 'Ukraine'], |
|
@@ 608-612 (lines=5) @@
|
| 605 |
|
|
| 606 |
|
$modelTranslations = []; |
| 607 |
|
|
| 608 |
|
foreach ($country->translations as $translation) { |
| 609 |
|
foreach ($country->translatedAttributes as $attr) { |
| 610 |
|
$modelTranslations[$translation->locale][$attr] = $translation->{$attr}; |
| 611 |
|
} |
| 612 |
|
} |
| 613 |
|
|
| 614 |
|
$expectedTranslations = [ |
| 615 |
|
'en' => ['name' => 'Ukraine'], |