MailFake
class MailFake implements Mailer
Properties
protected array | $mailables | All of the mailables that have been sent. |
Methods
Assert if a mailable was sent based on a truth-test callback.
Determine if a mailable was not sent based on a truth-test callback.
Assert that no mailables were sent.
Get all of the mailables matching a truth-test callback.
Determine if the given mailable has been sent.
Get all of the mailed mailables for a given type.
Begin the process of mailing a mailable class instance.
Begin the process of mailing a mailable class instance.
Get the array of failed recipients.
Details
at line 25
void
assertSent(string $mailable, callable|null $callback = null)
Assert if a mailable was sent based on a truth-test callback.
at line 40
void
assertNotSent(string $mailable, callable|null $callback = null)
Determine if a mailable was not sent based on a truth-test callback.
at line 53
void
assertNothingSent()
Assert that no mailables were sent.
at line 65
Collection
sent(string $mailable, callable|null $callback = null)
Get all of the mailables matching a truth-test callback.
at line 86
bool
hasSent(string $mailable)
Determine if the given mailable has been sent.
at line 97
protected Collection
mailablesOf(string $type)
Get all of the mailed mailables for a given type.
at line 110
PendingMail
to(mixed $users)
Begin the process of mailing a mailable class instance.
at line 121
PendingMail
bcc(mixed $users)
Begin the process of mailing a mailable class instance.
at line 133
int
raw(string $text, Closure|string $callback)
Send a new message when only a raw text part.
at line 146
void
send(string|array $view, array $data = [], Closure|string $callback = null)
Send a new message using a view.
at line 164
mixed
queue(string|array $view, array $data = [], Closure|string $callback = null, string|null $queue = null)
Queue a new e-mail message for sending.
at line 174
array
failures()
Get the array of failed recipients.