[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 17 17:47:48 CET 2010
* Committed attached patch to trunk, rev. 6802
Thanks for reviews
Christian
Christian Kuhn wrote:
> 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_02.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100117/1472acd1/attachment.asc>
More information about the TYPO3-team-core
mailing list