Skip to content

Commit 7b50a8e

Browse files
author
Eduardo Jansen
committed
Updating tests
1 parent 62c528d commit 7b50a8e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/Feature/Api/ProductTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function test_list_products_when_authenticated()
4040
'name',
4141
'code',
4242
'size',
43+
'composition',
44+
'quantity',
4345
'created_at',
4446
'updated_at'
4547
]
@@ -62,8 +64,10 @@ public function test_adding_product_when_authenticated()
6264

6365
$data_product = [
6466
'code' => '19837',
65-
'name' => 'Pro3duct Name',
66-
'size' => '103'
67+
'name' => 'Kit Masculino',
68+
'size' => '103',
69+
'composition' => 'Calça e Camisa',
70+
'quantity' => '2',
6771
];
6872

6973
$this->actingAs($user, 'api')->json('POST', '/api/v1/products', $data_product)

0 commit comments

Comments
 (0)