MDL-47499 tasks: Scheduled tasks custom schedule is reset on upgrade.
authorDamyon Wiese <damyon@moodle.com>
Tue, 14 Oct 2014 06:59:24 +0000 (14:59 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 14 Oct 2014 06:59:24 +0000 (14:59 +0800)
commit852ff0372fb6aa7350c115f5402a9477b4b0f1e6
tree10d73bd7c6a219d1481b825ad28f6012ecfdd079
parentec72585d644ad9d0d1feb52976e1fbcda4144590
MDL-47499 tasks: Scheduled tasks custom schedule is reset on upgrade.

Add a unit test for reset_scheduled_tasks_for_component and make sure it doesn't clear
customised schedules for existing tasks.
lib/classes/task/manager.php
lib/tests/scheduled_task_test.php