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 #1

Updated by Christian Kuhn almost 15 years ago

  • Committed to trunk, rev. 6802
Actions #2

Updated by Francois Suter over 12 years ago

  • Status changed from Resolved to Closed
Actions #3

Updated by Michael Stucki almost 11 years ago

  • Category set to scheduler
Actions #4

Updated by Michael Stucki almost 11 years ago

  • Project changed from 739 to TYPO3 Core
  • Category changed from scheduler to scheduler
  • Target version deleted (0)
Actions

Also available in: Atom PDF