mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for tests
This commit is contained in:
parent
c1ac1647f6
commit
1f0a6725f7
@ -166,11 +166,12 @@ class RecurringInvoiceTest extends TestCase
|
||||
'company_id' => $this->company->id,
|
||||
]);
|
||||
});
|
||||
$client = Client::all()->first();
|
||||
|
||||
$client = Client::query()->orderBy('id', 'DESC')->first();
|
||||
|
||||
RecurringInvoice::factory()->create(['user_id' => $this->user->id, 'company_id' => $this->company->id, 'client_id' => $this->client->id]);
|
||||
|
||||
$RecurringInvoice = RecurringInvoice::where('user_id', $this->user->id)->first();
|
||||
$RecurringInvoice = RecurringInvoice::query()->where('user_id', $this->user->id)->orderBy('id', 'DESC')->first();
|
||||
$RecurringInvoice->save();
|
||||
|
||||
$response = $this->withHeaders([
|
||||
|
@ -63,7 +63,7 @@ class RecurringQuoteTest extends TestCase
|
||||
{
|
||||
RecurringQuote::factory()->create(['user_id' => $this->user->id, 'company_id' => $this->company->id, 'client_id' => $this->client->id]);
|
||||
|
||||
$RecurringQuote = RecurringQuote::where('user_id', $this->user->id)->first();
|
||||
$RecurringQuote = RecurringQuote::query()->where('user_id', $this->user->id)->orderBy('id','DESC')->first();
|
||||
$RecurringQuote->save();
|
||||
|
||||
$response = $this->withHeaders([
|
||||
|
Loading…
Reference in New Issue
Block a user