Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Dec 5, 2024
1 parent 1255cae commit 5b5011f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Feature/Products/ProductCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ public function testCreateWithManufacturer(string $user): void
'translations' => [
$this->lang => [
'name' => 'Test',
'safety_information' => 'Safety',
],
],
'published' => [$this->lang],
Expand All @@ -303,7 +304,6 @@ public function testCreateWithManufacturer(string $user): void
'public' => true,
'shipping_digital' => false,
'manufacturer_id' => $manufacturer->getKey(),
'safety_information' => 'Safety',
])
->assertCreated()
->assertJsonFragment([
Expand Down Expand Up @@ -666,7 +666,12 @@ public function testUpdateManufacturer(string $user): void
->actingAs($this->{$user})
->json('PATCH', "/products/id:{$product->getKey()}", [
'manufacturer_id' => $manufacturer->getKey(),
'safety_information' => 'Safety',
'translations' => [
$this->lang => [
'name' => $product->name,
'safety_information' => 'Safety',
]
],
])
->assertOk()
->assertJsonFragment([
Expand Down

0 comments on commit 5b5011f

Please sign in to comment.