File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public function expectsEvents($events)
186186
187187 $ mock = Mockery::spy ('Illuminate\Contracts\Events\Dispatcher ' );
188188
189- $ mock ->shouldReceive ('fire ' )->andReturnUsing (function ($ called ) use (&$ events ) {
189+ $ mock ->shouldReceive ('fire ' , ' dispatch ' )->andReturnUsing (function ($ called ) use (&$ events ) {
190190 foreach ($ events as $ key => $ event ) {
191191 if ((is_string ($ called ) && $ called === $ event ) ||
192192 (is_string ($ called ) && is_subclass_of ($ called , $ event )) ||
@@ -218,7 +218,7 @@ protected function withoutEvents()
218218 {
219219 $ mock = Mockery::mock ('Illuminate\Contracts\Events\Dispatcher ' );
220220
221- $ mock ->shouldReceive ('fire ' );
221+ $ mock ->shouldReceive ('fire ' , ' dispatch ' );
222222
223223 $ this ->app ->instance ('events ' , $ mock );
224224
You can’t perform that action at this time.
0 commit comments