The Queue class contains a method named createPayloadUsing which allows you to register a callback that is executed when creating job payloads.
PHP
5 Ways to Extract Value from Overmocked Tests
Tomas shares his approach to get the most out of mocks, drop dead code, and make tests more valuable. Read more