From 27a721af05d6c04da70a272ba2ffff8b787c0596 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 3 Nov 2022 19:58:36 +1100 Subject: [PATCH] Minor fixes for tests --- tests/Feature/Inventory/InventoryManagementTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/Inventory/InventoryManagementTest.php b/tests/Feature/Inventory/InventoryManagementTest.php index eb62e19c884f..8b12761a974e 100644 --- a/tests/Feature/Inventory/InventoryManagementTest.php +++ b/tests/Feature/Inventory/InventoryManagementTest.php @@ -80,7 +80,7 @@ class InventoryManagementTest extends TestCase ])->post('/api/v1/invoices/', $invoice_array) ->assertStatus(200); - $product = $product->refresh(); + $product = $product->fresh(); $this->assertEquals(90, $product->in_stock_quantity);