46ea3269fc
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.