Replies: 3 comments
-
There are tools to assert if a notification or jobs are dispatched. You can look them up in the documentation. So I am not sure what you are looking for? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure that we mean the same. We are using laravel/browser-kit-testing to test calls to routes. We have tests where we use |
Beta Was this translation helpful? Give feedback.
-
Browser-Kit-Testing is no longer in active development and wouldn't likely receive new feature other than support on upcoming major Laravel releases. It might be best to migrate to latest TestCase available from the Framework and use the next Notification assertions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment when your test only expects a notification to be sent or an event to be fired or a job to be dispatched it will fail because no assertions where made.
In my opinion that is wrong. Something was asserted.
It is not even that hard we just need to increase the assertion count inside the closure when the expected result happened:
https://github.com/laravel/browser-kit-testing/blob/6.x/src/Concerns/MocksApplicationServices.php#L406
Beta Was this translation helpful? Give feedback.
All reactions