From 9d85290bb5991ece98e1dd4124639b85eec21fe1 Mon Sep 17 00:00:00 2001 From: freek Date: Wed, 20 Dec 2017 20:22:45 +0100 Subject: [PATCH] nitpick --- tests/TranslatableTest.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/TranslatableTest.php b/tests/TranslatableTest.php index c0c2a55..5706f8c 100644 --- a/tests/TranslatableTest.php +++ b/tests/TranslatableTest.php @@ -303,11 +303,23 @@ public function setNameAttribute($value) $this->attributes['name'] = "I just mutated {$value}"; } }); - $translations = ['nl' => 'hallo', 'en' => 'hello', 'kh' => 'សួរស្តី']; + + $translations = [ + 'nl' => 'hallo', + 'en' => 'hello', + 'kh' => 'សួរស្តី' + ]; + $testModel->setTranslations('name', $translations); + $testModel->save(); - $expected = ['nl' => 'I just mutated hallo', 'en' => 'I just mutated hello', 'kh' => 'I just mutated សួរស្តី']; + $expected = [ + 'nl' => 'I just mutated hallo', + 'en' => 'I just mutated hello', + 'kh' => 'I just mutated សួរស្តី' + ]; + $this->assertEquals($expected, $testModel->getTranslations('name')); } }