From d5bdbbba26ae270a73c987c16cc665986fc2a766 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Mon, 20 Aug 2012 10:23:46 +0800 Subject: [PATCH] MDL-34756 Unit Tests: Move backup helper tests --- .../util/helper/tests/cronhelper_test.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename lib/tests/backup_test.php => backup/util/helper/tests/cronhelper_test.php (98%) diff --git a/lib/tests/backup_test.php b/backup/util/helper/tests/cronhelper_test.php similarity index 98% rename from lib/tests/backup_test.php rename to backup/util/helper/tests/cronhelper_test.php index 5b44435310f..7afd1be1d08 100644 --- a/lib/tests/backup_test.php +++ b/backup/util/helper/tests/cronhelper_test.php @@ -15,9 +15,9 @@ // along with Moodle. If not, see . /** - * Unit tests for backups. + * Unit tests for backups cron helper. * - * @package core + * @package core_backup * @category phpunit * @copyright 2012 Frédéric Massart * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later @@ -29,12 +29,14 @@ global $CFG; require_once($CFG->dirroot . '/backup/util/helper/backup_cron_helper.class.php'); /** - * Unit tests for backup system + * Unit tests for backup cron helper */ -class backup_testcase extends advanced_testcase { +class backup_cron_helper_testcase extends advanced_testcase { + /** + * Test {@link backup_cron_automated_helper::calculate_next_automated_backup}. + */ public function test_next_automated_backup() { - $this->resetAfterTest(); set_config('backup_auto_active', '1', 'backup');