Asserting Jobs in Queue with Laravel Duskby@deleugpn
2,925 reads
2,925 reads

Asserting Jobs in Queue with Laravel Dusk

by Marco Aurélio Deleu3mApril 30th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

When writing end-to-end tests with Laravel Dusk, you cannot mock your job dispatches like you use to do in Laravel 5.3 because the browser is a separate process and any tweaks you do inside your tests doesn’t exist when the browser hits the application. The browser will bootstrap the whole application again. My workaround for this was to simply assert that the job is in the queue to be dispatched with some simple steps.

Company Mentioned

Mention Thumbnail
featured image - Asserting Jobs in Queue with Laravel Dusk
Marco Aurélio Deleu HackerNoon profile picture
Marco Aurélio Deleu

Marco Aurélio Deleu

@deleugpn

L O A D I N G
. . . comments & more!

About Author

Marco Aurélio Deleu HackerNoon profile picture
Marco Aurélio Deleu@deleugpn

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite