Fixes for tests

This commit is contained in:
David Bomba 2020-10-06 22:32:07 +11:00
parent 61ea96589f
commit ee67911afb

View File

@ -86,7 +86,10 @@ class ProductTest extends TestCase
)
->assertStatus(200);
$product = Product::all()->first();
$arr = $response->json();
$product = Product::find($this->decodePrimaryKey($arr['data']['id']));
$product_update = [
'notes' => 'CHANGE',