title: Running Laravel tests with PHPUnit, queued jobs seem to always run in sync mode. How to dispatch them in standard mode?
body: <p>Running Laravel 7 with the job queue using the 'database' driver.</p>
  <p>There is a call from the frontend to an API that dispatches a job and immediately returns a response with the status (queued). This works fine when called from the frontend Javascript.</p>
  <p>Trying to test this same endpoint with PHPUnit, with a test that calls the same API endpoint, I see that the job appears to be dispatched in sync mode, i.e. the HTTP response does not arrive until the job has completed, because the -&gt;dispatch() method does not return until then.</p>
  <p>Both tests are using exactly the same dev environment - one runs async, the other sync.</p>
  <p>Can't see anything in the docs about this. How to make the job get queued asynchronously when running with PHPUnit, so we can test the intended behavior?</p>