Skip to content

Commit

Permalink
Update test to ignore a given ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvermeyen committed Oct 20, 2018
1 parent 879c996 commit eda76e9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/UniqueTranslationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,20 @@ public function it_ignores_the_given_id()

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

Model::create([
'slug' => [
'en' => 'another-slug-en',
'nl' => 'another-slug-nl',
],
'name' => [
'en' => 'another-name-en',
'fr' => null,
],
]);

$this->post('test-array', [
'slug' => ['nl' => 'slug-nl'],
'name' => ['nl' => 'name-nl'],
'slug' => ['en' => 'slug-en', 'nl' => 'slug-nl'],
'name' => ['en' => 'name-en', 'fr' => null],
])->assertStatus(200);
}

Expand Down

0 comments on commit eda76e9

Please sign in to comment.