mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
2558c4345f
commit
11496e34eb
@ -176,8 +176,7 @@ class CreditsTest extends TestCase
|
|||||||
->assertSee('testing-number-02')
|
->assertSee('testing-number-02')
|
||||||
->assertSee('testing-number-03');
|
->assertSee('testing-number-03');
|
||||||
|
|
||||||
|
$account->delete();
|
||||||
$user->forceDelete();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,21 +64,21 @@ class InvoicesTest extends TestCase
|
|||||||
'company_id' => $company->id,
|
'company_id' => $company->id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$sent = Invoice::factory()->for($client)->create([
|
$sent = Invoice::factory()->create([
|
||||||
'user_id' => $user->id,
|
'user_id' => $user->id,
|
||||||
'company_id' => $company->id,
|
'company_id' => $company->id,
|
||||||
'client_id' => $client->id,
|
'client_id' => $client->id,
|
||||||
'status_id' => Invoice::STATUS_SENT,
|
'status_id' => Invoice::STATUS_SENT,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$paid = Invoice::factory()->for($client)->create([
|
$paid = Invoice::factory()->create([
|
||||||
'user_id' => $user->id,
|
'user_id' => $user->id,
|
||||||
'company_id' => $company->id,
|
'company_id' => $company->id,
|
||||||
'client_id' => $client->id,
|
'client_id' => $client->id,
|
||||||
'status_id' => Invoice::STATUS_PAID,
|
'status_id' => Invoice::STATUS_PAID,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$unpaid = Invoice::factory()->for($client)->create([
|
$unpaid = Invoice::factory()->create([
|
||||||
'user_id' => $user->id,
|
'user_id' => $user->id,
|
||||||
'company_id' => $company->id,
|
'company_id' => $company->id,
|
||||||
'client_id' => $client->id,
|
'client_id' => $client->id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user