Skip to content

Commit

Permalink
mock fire and dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 25, 2017
1 parent d7546da commit d974a88
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -101,7 +101,7 @@ protected function withoutEvents()
{
$mock = Mockery::mock(EventsDispatcherContract::class);

$mock->shouldReceive('dispatch')->andReturnUsing(function ($called) {
$mock->shouldReceive('fire', 'dispatch')->andReturnUsing(function ($called) {
$this->firedEvents[] = $called;
});

Expand Down

0 comments on commit d974a88

Please sign in to comment.