We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 879c996 commit eda76e9Copy full SHA for eda76e9
tests/UniqueTranslationTest.php
@@ -141,9 +141,20 @@ public function it_ignores_the_given_id()
141
142
$this->createRoute('test-array', $rules);
143
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
+
155
$this->post('test-array', [
- 'slug' => ['nl' => 'slug-nl'],
- 'name' => ['nl' => 'name-nl'],
156
+ 'slug' => ['en' => 'slug-en', 'nl' => 'slug-nl'],
157
+ 'name' => ['en' => 'name-en', 'fr' => null],
158
])->assertStatus(200);
159
}
160
0 commit comments