Skip to content

Commit

Permalink
Change 'fire' to 'dispatch' when mocking application events
Browse files Browse the repository at this point in the history
Mock 'dispatch' method instead of 'fire' in EventDispatcher due to Laravel 5.4 change.
  • Loading branch information
Aferz authored Jan 25, 2017
1 parent 0435cfc commit d7546da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function withoutEvents()
{
$mock = Mockery::mock(EventsDispatcherContract::class);

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

Expand Down

0 comments on commit d7546da

Please sign in to comment.