We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8556a8 commit 8946200Copy full SHA for 8946200
tests/Feature/Models/MailatorScheduleTest.php
@@ -26,7 +26,7 @@ public function test_can_create_mailator_schedule()
26
{
27
$user = UserFactory::one();
28
29
- MailatorSchedule::init('Invoice reminder.')
+ MailatorSchedule::init($name = 'Invoice reminder.')
30
->mailable(new InvoiceReminderMailable())
31
->days(1)
32
->before(now()->addWeek())
@@ -38,6 +38,11 @@ public function test_can_create_mailator_schedule()
38
39
$this->assertCount(1, MailatorSchedule::all());
40
41
+ self::assertSame(
42
+ $name,
43
+ MailatorSchedule::first()->name
44
+ );
45
+
46
self::assertCount(1, $user->schedulers);
47
}
48
0 commit comments