From a776c7b5a9ca296721f6b751d20516f14414ef9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Fri, 13 Mar 2026 21:57:28 +0000 Subject: [PATCH] fixed bill test.. --- tests/Feature/Purchases/BillsTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Purchases/BillsTest.php b/tests/Feature/Purchases/BillsTest.php index d61a0e1ed..c463605d3 100644 --- a/tests/Feature/Purchases/BillsTest.php +++ b/tests/Feature/Purchases/BillsTest.php @@ -244,8 +244,10 @@ class BillsTest extends FeatureTestCase $vendorA = Contact::factory()->vendor()->enabled()->create(); $vendorB = Contact::factory()->vendor()->enabled()->create(); - // Create a bill with vendor A + // Create a bill with vendor A (must be draft so authorize() allows contact change) $request = $this->getRequest(); + + $request['status'] = 'draft'; $request['contact_id'] = $vendorA->id; $request['contact_name'] = $vendorA->name; $request['contact_email'] = $vendorA->email;