trait MocksApplicationServices (View source)
$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. |
Specify a list of events that should be fired for the given operation.
These events will be mocked, so that handlers will not actually be executed.
Specify a list of events that should not be fired for the given operation.
These events will be mocked, so that handlers will not actually be executed.
Specify a list of events that should be fired for the given operation.
These events will be mocked, so that handlers will not actually be executed.
Specify a list of events that should not be fired for the given operation.
These events will be mocked, so that handlers will not actually be executed.
Specify a list of observers that will not run for the given operation.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Testing/Concerns/MocksApplicationServices.html