mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 16:44:33 -04: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,
|
'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::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();
|
$RecurringInvoice->save();
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$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::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();
|
$RecurringQuote->save();
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user