MocksApplicationServices

MocksApplicationServices

trait MocksApplicationServices (View source)

Methods

$this expectsEvents(array|string $events)

Specify a list of events that should be fired for the given operation.

$this doesntExpectEvents(array|string $events)

Specify a list of events that should not be fired for the given operation.

$this expectsModelEvents(string $model, array|string $events)

Specify a list of events that should be fired for the given operation.

$this doesntExpectModelEvents(string $model, array|string $events)

Specify a list of events that should not be fired for the given operation.

$this withoutObservers(array|string $observers)

Specify a list of observers that will not run for the given operation.

doc_Laravel
2016-11-02 16:26:14
Comments
Leave a Comment

Please login to continue.