File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -35,32 +35,6 @@ public function test_can_create_mailator_schedule()
3535 $ this ->assertDatabaseCount ('mailator_schedulers ' , 1 );
3636 }
3737
38- public function test_can_queue_email_from_mailator ()
39- {
40- MailatorSchedule::init ('Invoice reminder. ' )
41- ->mailable (
42- new InvoiceReminderMailable ()
43- )
44- ->days (1 )
45- ->before (BeforeInvoiceExpiresConstraint::class)
46- ->save ();
47-
48- $ mailator = MailatorSchedule::first ();
49-
50- $ queueFake = new QueueFake (new Application ());
51-
52- $ mailer = $ this ->getMockBuilder (Mailer::class)
53- ->setConstructorArgs ($ this ->getMocks ())
54- ->setMethods (['createMessage ' , 'to ' ])
55- ->getMock ();
56-
57- $ mailer ->setQueue ($ queueFake );
58- $ mailable = unserialize ($ mailator ->mailable_class );
59- $ queueFake ->assertNothingPushed ();
60- $ mailer ->send ($ mailable );
61- $ queueFake ->assertPushedOn (null , SendQueuedMailable::class);
62- }
63-
6438 public function test_sending_email_only_once ()
6539 {
6640 Mail::fake ();
You can’t perform that action at this time.
0 commit comments