Spec-Zone.ru › Laravel 5.4

NotificationFake

class NotificationFake implements Factory (View source)

Свойства

protected array $notifications Все уведомления, которые были отправлены.

Методы

void assertSentTo(mixed $notifiable, string $notification, callable|null $callback = null)

Проверить, было ли отправлено уведомление, используя обратный вызов для проверки.

void assertNotSentTo(mixed $notifiable, string $notification, callable|null $callback = null)

Определить, было ли отправлено уведомление, используя обратный вызов для проверки.

Collection sent(mixed $notifiable, string $notification, callable|null $callback = null)

Получить все уведомления, соответствующие обратному вызову проверки.

bool hasSent(mixed $notifiable, string $notification)

Определить, есть ли ещё уведомления для проверки.

array notificationsFor(mixed $notifiable, string $notification)

Получить все уведомления для сущности notifiable по типу.

void send(Collection|array|mixed $notifiables, mixed $notification)

Отправить заданное уведомление заданным сущностям notifiable.

void sendNow(Collection|array|mixed $notifiables, mixed $notification)

Отправить заданное уведомление немедленно.

mixed channel(string|null $name = null)

Получить экземпляр канала по имени.

Подробности

void assertSentTo(mixed $notifiable, string $notification, callable|null $callback = null)

Проверить, было ли отправлено уведомление, используя обратный вызов для проверки.

Параметры

mixed $notifiable
string $notification
callable|null $callback

Возвращаемое значение

void

void assertNotSentTo(mixed $notifiable, string $notification, callable|null $callback = null)

Определить, было ли отправлено уведомление, используя обратный вызов для проверки.

Параметры

mixed $notifiable
string $notification
callable|null $callback

Возвращаемое значение

void

Collection sent(mixed $notifiable, string $notification, callable|null $callback = null)

Получить все уведомления, соответствующие обратному вызову проверки.

Параметры

mixed $notifiable
string $notification
callable|null $callback

Возвращаемое значение

Collection

bool hasSent(mixed $notifiable, string $notification)

Определить, есть ли ещё уведомления для проверки.

Параметры

mixed $notifiable
string $notification

Возвращаемое значение

bool

protected array notificationsFor(mixed $notifiable, string $notification)

Получить все уведомления для сущности notifiable по типу.

Параметры

mixed $notifiable
string $notification

Возвращаемое значение

array

void send(Collection|array|mixed $notifiables, mixed $notification)

Отправить заданное уведомление заданным сущностям notifiable.

Параметры

Collection|array|mixed $notifiables
mixed $notification

Возвращаемое значение

void

void sendNow(Collection|array|mixed $notifiables, mixed $notification)

Отправить заданное уведомление немедленно.

Параметры

Collection|array|mixed $notifiables
mixed $notification

Возвращаемое значение

void

mixed channel(string|null $name = null)

Получить экземпляр канала по имени.

Параметры

string|null $name

Возвращаемое значение

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Support/Testing/Fakes/NotificationFake.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API