class NotificationFake implements Factory (View source)
void | assertSentTo(mixed $notifiable, string $notification, callable|null $callback = null) Assert if a notification was sent based on a truth-test callback. | |
void | assertNotSentTo(mixed $notifiable, string $notification, callable|null $callback = null) Determine if a notification was sent based on a truth-test callback. | |
Collection | sent(mixed $notifiable, string $notification, callable|null $callback = null) Get all of the notifications matching a truth-test callback. | |
bool | hasSent(mixed $notifiable, string $notification) Determine if there are more notifications left to inspect. | |
void | send(Collection|array|mixed $notifiables, mixed $notification) Send the given notification to the given notifiable entities. | |
void | sendNow(Collection|array|mixed $notifiables, mixed $notification) Send the given notification immediately. | |
mixed | channel(string|null $name = null) Get a channel instance by name. |
Assert if a notification was sent based on a truth-test callback.
Determine if a notification was sent based on a truth-test callback.
Get all of the notifications matching a truth-test callback.
Determine if there are more notifications left to inspect.
Send the given notification to the given notifiable entities.
Send the given notification immediately.
Get a channel instance by name.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Support/Testing/Fakes/NotificationFake.html