Skip to content

Commit eda76e9

Browse files
committedOct 20, 2018
Update test to ignore a given ID
1 parent 879c996 commit eda76e9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed
 

‎tests/UniqueTranslationTest.php

+13-2
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,20 @@ public function it_ignores_the_given_id()
141141

142142
$this->createRoute('test-array', $rules);
143143

144+
Model::create([
145+
'slug' => [
146+
'en' => 'another-slug-en',
147+
'nl' => 'another-slug-nl',
148+
],
149+
'name' => [
150+
'en' => 'another-name-en',
151+
'fr' => null,
152+
],
153+
]);
154+
144155
$this->post('test-array', [
145-
'slug' => ['nl' => 'slug-nl'],
146-
'name' => ['nl' => 'name-nl'],
156+
'slug' => ['en' => 'slug-en', 'nl' => 'slug-nl'],
157+
'name' => ['en' => 'name-en', 'fr' => null],
147158
])->assertStatus(200);
148159
}
149160

0 commit comments

Comments
 (0)
Please sign in to comment.