Project

General

Profile

Actions

Feature #25643

closed

Allow different timestamp as optional parameter in constructor of class tx_scheduler_croncmd

Added by Christian Kuhn almost 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
scheduler
Target version:
-
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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #25644: Day of week in cron command is not calculated correctlyClosedChristian Kuhn2010-01-09

Actions
Actions

Also available in: Atom PDF