October\Rain\Mail\FakeMailer
Extends
- Illuminate\Support\Testing\Fakes\MailFake
Implements
- Illuminate\Contracts\Mail\MailQueue
- Illuminate\Contracts\Mail\Mailer
- Illuminate\Support\Testing\Fakes\Fake
- Illuminate\Contracts\Mail\Factory
Public Properties
There are no public properties in the class.
Show inherited public properties
Inherited Public Properties
- $manager - The mailer instance. (defined in Illuminate\Support\Testing\Fakes\MailFake)
Protected Properties
There are no protected properties in the class.
Show inherited protected properties
Inherited Protected Properties
- $currentMailer - The mailer currently being used to send a message. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- $mailables - All of the mailables that have been sent. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- $queuedMailables - All of the mailables that have been queued. (defined in Illuminate\Support\Testing\Fakes\MailFake)
Public Methods
public buildMailable()
public buildMailable($view, $data, $callback, $queued = false): void
buildMailable from a view file
public queue()
public queue($view, $data = null, $callback = null, $queue = null): void
queue a new e-mail message for sending
public send()
public send($view, $data = [], $callback = null): void
send a new message using a view
Inherited Public Methods
- __call() - Handle dynamic method calls to the mailer. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- __construct() - Create a new mail fake. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertNotOutgoing() - Determine if a mailable was not sent or queued to be sent based on a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertNotQueued() - Determine if a mailable was not queued based on a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertNotSent() - Determine if a mailable was not sent based on a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertNothingOutgoing() - Assert that no mailables were sent or queued to be sent. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertNothingQueued() - Assert that no mailables were queued. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertNothingSent() - Assert that no mailables were sent. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertOutgoingCount() - Assert the total number of mailables that were sent or queued. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertQueued() - Assert if a mailable was queued based on a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertQueuedCount() - Assert the total number of mailables that were queued. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertQueuedOnce() - Assert if a mailable was queued exactly once. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertQueuedTimes() - Assert if a mailable was queued a number of times. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertSent() - Assert if a mailable was sent based on a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertSentCount() - Assert the total number of mailables that were sent. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertSentOnce() - Assert if a mailable was sent exactly once. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- assertSentTimes() - Assert if a mailable was sent a number of times. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- bcc() - Begin the process of mailing a mailable class instance. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- cc() - Begin the process of mailing a mailable class instance. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- driver() - Get a mailer driver instance. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- forgetMailers() - Forget all of the resolved mailer instances. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- hasQueued() - Determine if the given mailable has been queued. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- hasSent() - Determine if the given mailable has been sent. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- later() - Queue a new e-mail message for sending after (n) seconds. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- laterOn() - Queue a new e-mail message for sending after (n) seconds on the given queue. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- mailer() - Get a mailer instance by name. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- onQueue() - Queue a new mail message for sending on the given queue. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- queueOn() - Queue a new mail message for sending on the given queue. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- queued() - Get all of the queued mailables matching a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- raw() - Send a new message with only a raw text part. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- sendNow() - Send a new message synchronously using a view. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- sent() - Get all of the mailables matching a truth-test callback. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- to() - Begin the process of mailing a mailable class instance. (defined in Illuminate\Support\Testing\Fakes\MailFake)
Protected Methods
protected mailablesOf()
protected mailablesOf($type): Illuminate\Support\Collection
mailablesOf a given type
protected queuedMailablesOf()
protected queuedMailablesOf($type): Illuminate\Support\Collection
queuedMailablesOf of a given type
Show inherited protected methods
Inherited Protected Methods
- closureParameterTypes() - Get the class names / types of the parameters of the given Closure. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- closureReturnTypes() - Get the class names / types of the return type of the given Closure. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- firstClosureParameterType() - Get the class name of the first parameter of the given Closure. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- firstClosureParameterTypes() - Get the class names of the first parameter of the given Closure, including union types. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- forwardCallTo() - Forward a method call to the given object. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- forwardDecoratedCallTo() - Forward a method call to the given object, returning $this if the forwarded call returned itself. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- prepareMailableAndCallback() - Infer mailable class using reflection if a typehinted closure is passed to assertion. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- sendMail() - Send a new message using a view. (defined in Illuminate\Support\Testing\Fakes\MailFake)
- throwBadMethodCallException() - Throw a bad method call exception for the given method. (defined in Illuminate\Support\Testing\Fakes\MailFake)