Actions
Feature #25643
closedAllow different timestamp as optional parameter in constructor of class tx_scheduler_croncmd
Start date:
2010-01-09
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
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)
Actions