Skip to content

Commit 8946200

Browse files
committed
test
1 parent b8556a8 commit 8946200

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Feature/Models/MailatorScheduleTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function test_can_create_mailator_schedule()
2626
{
2727
$user = UserFactory::one();
2828

29-
MailatorSchedule::init('Invoice reminder.')
29+
MailatorSchedule::init($name = 'Invoice reminder.')
3030
->mailable(new InvoiceReminderMailable())
3131
->days(1)
3232
->before(now()->addWeek())
@@ -38,6 +38,11 @@ public function test_can_create_mailator_schedule()
3838

3939
$this->assertCount(1, MailatorSchedule::all());
4040

41+
self::assertSame(
42+
$name,
43+
MailatorSchedule::first()->name
44+
);
45+
4146
self::assertCount(1, $user->schedulers);
4247
}
4348

0 commit comments

Comments
 (0)