When running an adhoc task in a unit test we should use the cron variant of the set user method to mimic the behaviour of a real cron run.
When running an adhoc task in a unit test we should use the cron variant of the set user method to mimic the behaviour of a real cron run.