Index: typo3/sysext/scheduler/tests/tx_scheduler_croncmdTest.php
===================================================================
--- typo3/sysext/scheduler/tests/tx_scheduler_croncmdTest.php	(revision 9314)
+++ typo3/sysext/scheduler/tests/tx_scheduler_croncmdTest.php	(working copy)
@@ -166,5 +166,23 @@
 		$actualResult = $cronCmdInstance->valid_values;
 		$this->assertEquals($expectedResult, $actualResult[2]);
 	}
+
+	/**
+	 * Tests whether dayList is correctly calculated for a weekday with numeric zero value.
+	 *
+	 * @test
+	 */
+	public function weekdayPartUsesZeroValue() {
+		$cronCmdInstance = t3lib_div::makeInstance('tx_scheduler_cronCmd', '0 0 * * 0', self::TIMESTAMP);
+		$expectedResult = array(
+			'0' => 3,
+			'1' => 10,
+			'2' => 17,
+			'3' => 24,
+			'4' => 31,
+		);
+		$actualResult = $cronCmdInstance->valid_values;
+		$this->assertEquals($expectedResult, $actualResult[2]);
+	}
 }
 ?>
\ No newline at end of file
