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:
parent
bcc63c7a33
commit
23c22dd9dc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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'])
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user