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
withoutObservers( array|string $observers)

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

Details

at line line 35
$this expectsEvents( array|string $events)

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.

Parameters

array|string $events

Return Value

$this

Exceptions

Exception

at line line 62
$this doesntExpectEvents( array|string $events)

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.

Parameters

array|string $events

Return Value

$this

at line line 111
$this withoutObservers( array|string $observers)

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

Parameters

array|string $observers

Return Value

$this