MailFake
class Winter\Storm\Support\Testing\Fakes\MailFake
extends Illuminate\Support\Testing\Fakes\MailFake
Extends
Class | Description |
---|---|
Illuminate\Support\Testing\Fakes\MailFake
|
Methods
public
buildMailable (string | array $view, array $data, Closure | string $callback, boolean $queued = false
)
: Winter\Storm\Mail\Mailable
Create a Mailable object from a view file.
Parameters
Property | Type | Description |
---|---|---|
$view | string | array |
string | array
|
$data | array |
array
|
$callback | Closure | string |
Closure | string
|
$queued | boolean |
boolean
|
Returns
public
queue (Mailable | string | array $view, array $data = null
, Closure | string $callback = null
, string | null $queue = null
)
: mixed
Queue a new e-mail message for sending.
Parameters
Property | Type | Description |
---|---|---|
$view | Mailable | string | array | |
$data | array |
array
|
$callback | Closure | string |
Closure | string
|
$queue | string | null |
string | null
|
Returns
mixed
public
send (Mailable | string | array $view, array $data = []
, Closure | string $callback = null
)
: void
Send a new message using a view.
Parameters
Property | Type | Description |
---|---|---|
$view | Mailable | string | array | |
$data | array |
array
|
$callback | Closure | string |
Closure | string
|
Returns
void
protected mailablesOf (string $type) : Illuminate\Support\Collection
Get all of the mailed mailables for a given type.
Parameters
Property | Type | Description |
---|---|---|
$type | string |
string
|
Returns
Illuminate\Support\Collection
protected queuedMailablesOf (string $type) : Illuminate\Support\Collection
Get all of the queued mailables for a given type.
Parameters
Property | Type | Description |
---|---|---|
$type | string |
string
|
Returns
Illuminate\Support\Collection
← Previous page
Winter\Storm\Support\Testing\Fakes\EventFake
Next page →
Winter\Storm\Support\Testing\MocksClassLoader
Copyright © 2024 Winter CMS