[TYPO3-core] RFC #13192: Feature: Allow different timestamp as optional parameter in constructor of class tx_scheduler_croncmd
Christian Kuhn
lolli at schwarzbu.ch
Sun Jan 10 00:25:31 CET 2010
This is SVN patch request.
Type: Feature
Branches: trunk
BT reference: http://bugs.typo3.org/view.php?id=13192
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.
Regards
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13192_01.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100110/fc116457/attachment.asc>
More information about the TYPO3-team-core
mailing list