Issue Feature Closed

#25643Allow different timestamp as optional parameter in constructor of class tx_scheduler_croncmd

Christian Kuhn 01/09/10, 23:40 updated 12/10/13, 01:27

Description

Problem:
__construct() of class tx_scheduler_croncmd uses current timestamp to initialize the calculation of valid values of the cron command. This makes it hard to write testcases to this method. Those should ideally work with a fixed date to get simple expected values for testcases (eg. all Mondays of a month).

Solution:
Add an optional parameter to allow external setting of current timestamp.

(issue imported from #M13192)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.