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);