From 2f98696caf3080d62071ef20008df739735c8772 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Tue, 14 Jan 2020 10:01:00 +0300 Subject: [PATCH] fixed reminder tests --- tests/Feature/Commands/BillReminderTest.php | 2 +- tests/Feature/Commands/InvoiceReminderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Commands/BillReminderTest.php b/tests/Feature/Commands/BillReminderTest.php index 66356d4a2..c61706b0d 100644 --- a/tests/Feature/Commands/BillReminderTest.php +++ b/tests/Feature/Commands/BillReminderTest.php @@ -41,7 +41,7 @@ class BillReminderTest extends FeatureTestCase public function getRequest() { - return factory(Bill::class)->states('items')->raw([ + return factory(Bill::class)->states('items', 'received')->raw([ 'due_at' => Date::now()->subDays($this->add_days - 1), ]); } diff --git a/tests/Feature/Commands/InvoiceReminderTest.php b/tests/Feature/Commands/InvoiceReminderTest.php index 0a6ac71ca..1b46d96b0 100644 --- a/tests/Feature/Commands/InvoiceReminderTest.php +++ b/tests/Feature/Commands/InvoiceReminderTest.php @@ -41,7 +41,7 @@ class InvoiceReminderTest extends FeatureTestCase public function getRequest() { - return factory(Invoice::class)->states('items')->raw([ + return factory(Invoice::class)->states('items', 'sent')->raw([ 'due_at' => Date::now()->subDays($this->add_days - 1), ]); }