1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for tests

This commit is contained in:
David Bomba 2020-09-19 10:17:13 +10:00
parent bcc63c7a33
commit 23c22dd9dc
3 changed files with 9 additions and 5 deletions

View File

@ -52,8 +52,8 @@ class QueryLogging
Log::info($request->method().' - '.$request->url().": $count queries - ".$time);
// if($count > 100)
// Log::info($queries);
if($count > 100)
Log::info($queries);
}
}

View File

@ -1,4 +1,4 @@
@component('email.template.master', ['design' => 'dark', 'settings' => $settigns])
@component('email.template.master', ['design' => 'dark', 'settings' => $settings])
@slot('header')
@component('email.components.header', ['p' => $body, 'logo' => 'https://www.invoiceninja.com/wp-content/uploads/2019/01/InvoiceNinja-Logo-Round-300x300.png'])

View File

@ -39,13 +39,17 @@ class RecurringInvoicesCronTest extends TestCase
{
parent::setUp();
//RecurringInvoice::truncate();
RecurringInvoice::all()->each(function ($ri){
$ri->forceDelete();
});
$this->makeTestData();
}
public function testCountCorrectNumberOfRecurringInvoicesDue()
{
//spin up 5 valid and 1 invalid recurring invoices
$recurring_invoices = RecurringInvoice::where('next_send_date', '<=', Carbon::now()->addMinutes(30))->get();