fixed bill test..

This commit is contained in:
Cüneyt Şentürk 2026-03-13 21:57:28 +00:00
parent aba76b12c8
commit a776c7b5a9
1 changed files with 3 additions and 1 deletions

View File

@ -244,8 +244,10 @@ class BillsTest extends FeatureTestCase
$vendorA = Contact::factory()->vendor()->enabled()->create(); $vendorA = Contact::factory()->vendor()->enabled()->create();
$vendorB = 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 = $this->getRequest();
$request['status'] = 'draft';
$request['contact_id'] = $vendorA->id; $request['contact_id'] = $vendorA->id;
$request['contact_name'] = $vendorA->name; $request['contact_name'] = $vendorA->name;
$request['contact_email'] = $vendorA->email; $request['contact_email'] = $vendorA->email;