Back

Laravel has this beautiful testing syntax where you can pass a 'truth test' when asserting things like notifications.

I prefer asserting expectations inside the callback and returning 'true' after that. Makes it a little easier to debug when the test fails.

image

110

  • No matching results...
  • Searching...

/ 1000