Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Tests the automated backup run when the there is course backup should be skipped.
96
     * Tests the automated backup run when the there is course backup should be skipped.
97
     */
97
     */
98
    public function test_automated_backup_skipped_run() {
98
    public function test_automated_backup_skipped_run(): void {
Línea 99... Línea 99...
99
        global $DB;
99
        global $DB;
100
 
100
 
101
        // Enable automated back up.
101
        // Enable automated back up.
Línea 129... Línea 129...
129
    }
129
    }
Línea 130... Línea 130...
130
 
130
 
131
    /**
131
    /**
132
     * Tests the automated backup run when the there is course backup can be pushed to adhoc task.
132
     * Tests the automated backup run when the there is course backup can be pushed to adhoc task.
133
     */
133
     */
134
    public function test_automated_backup_push_run() {
134
    public function test_automated_backup_push_run(): void {
Línea 135... Línea 135...
135
        global $DB;
135
        global $DB;
136
 
136
 
137
        // Enable automated back up.
137
        // Enable automated back up.
Línea 169... Línea 169...
169
    }
169
    }
Línea 170... Línea 170...
170
 
170
 
171
    /**
171
    /**
172
     * Tests the automated backup inactive run.
172
     * Tests the automated backup inactive run.
173
     */
173
     */
174
    public function test_inactive_run() {
174
    public function test_inactive_run(): void {
175
        backup_cron_automated_helper::run_automated_backup();
175
        backup_cron_automated_helper::run_automated_backup();
176
        $this->expectOutputString("Checking automated backup status...INACTIVE\n");
176
        $this->expectOutputString("Checking automated backup status...INACTIVE\n");
Línea 177... Línea 177...
177
    }
177
    }
178
 
178
 
179
    /**
179
    /**
180
     * Tests the invisible course being skipped.
180
     * Tests the invisible course being skipped.
181
     */
181
     */
Línea 182... Línea 182...
182
    public function test_should_skip_invisible_course() {
182
    public function test_should_skip_invisible_course(): void {
183
        global $DB;
183
        global $DB;
184
 
184
 
Línea 207... Línea 207...
207
    }
207
    }
Línea 208... Línea 208...
208
 
208
 
209
    /**
209
    /**
210
     * Tests the not modified course being skipped.
210
     * Tests the not modified course being skipped.
211
     */
211
     */
212
    public function test_should_skip_not_modified_course_in_days() {
212
    public function test_should_skip_not_modified_course_in_days(): void {
Línea 213... Línea 213...
213
        global $DB;
213
        global $DB;
214
 
214
 
215
        set_config('backup_auto_active', true, 'backup');
215
        set_config('backup_auto_active', true, 'backup');
Línea 241... Línea 241...
241
    }
241
    }
Línea 242... Línea 242...
242
 
242
 
243
    /**
243
    /**
244
     * Tests the backup not modified course being skipped.
244
     * Tests the backup not modified course being skipped.
245
     */
245
     */
246
    public function test_should_skip_not_modified_course_since_prev() {
246
    public function test_should_skip_not_modified_course_since_prev(): void {
Línea 247... Línea 247...
247
        global $DB;
247
        global $DB;
248
 
248
 
249
        set_config('backup_auto_active', true, 'backup');
249
        set_config('backup_auto_active', true, 'backup');
Línea 275... Línea 275...
275
    }
275
    }
Línea 276... Línea 276...
276
 
276
 
277
    /**
277
    /**
278
     * Test the task completes when coureid is missing.
278
     * Test the task completes when coureid is missing.
279
     */
279
     */
280
    public function test_task_complete_when_courseid_is_missing() {
280
    public function test_task_complete_when_courseid_is_missing(): void {
281
        global $DB;
281
        global $DB;
282
        $admin = get_admin();
282
        $admin = get_admin();
Línea 283... Línea 283...
283
        $classobject = $this->backupcronautomatedhelper->return_this();
283
        $classobject = $this->backupcronautomatedhelper->return_this();
Línea 307... Línea 307...
307
    }
307
    }
Línea 308... Línea 308...
308
 
308
 
309
    /**
309
    /**
310
     * Test the task completes when backup course is missing.
310
     * Test the task completes when backup course is missing.
311
     */
311
     */
312
    public function test_task_complete_when_backup_course_is_missing() {
312
    public function test_task_complete_when_backup_course_is_missing(): void {
313
        global $DB;
313
        global $DB;
314
        $admin = get_admin();
314
        $admin = get_admin();
Línea 315... Línea 315...
315
        $classobject = $this->backupcronautomatedhelper->return_this();
315
        $classobject = $this->backupcronautomatedhelper->return_this();