October\Rain\Mail\FakeMailer

Extends
  • Illuminate\Support\Testing\Fakes\MailFake
Implements
  • Illuminate\Contracts\Mail\MailQueue
  • Illuminate\Contracts\Mail\Mailer
  • Illuminate\Contracts\Mail\Factory

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

Show inherited public methods

Inherited Public Methods

  • 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)
  • assertQueued() - Assert if a mailable was queued based on a truth-test callback. (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)
  • 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)
  • failures() - Get the array of failed recipients. (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)
  • mailer() - Get a mailer instance by name. (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)
  • 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

  • assertQueuedTimes() - Assert if a mailable was queued a number of times. (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)
  • closureParameterTypes() - Get the class names / types of the parameters 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)
  • prepareMailableAndCallback() - Infer mailable class using reflection if a typehinted closure is passed to assertion. (defined in Illuminate\Support\Testing\Fakes\MailFake)