Skip to content

3.1.0 - Force normal execution in tests

Choose a tag to compare

@stephanschuler stephanschuler released this 21 Feb 13:27
6d28561

Manually calling CopyToScheduler::forceNormalExecution(callable) creates
a process scope where even ScheduledJobInterface::execute() would always
be called immediately without going to the scheduler.

This is meant to be used in test scenarios, to avoid Scheduler::next()
calls wherever the job being scheduled or not isn't a thing we want
to test for.