Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 24... Línea 24...
24
 * @copyright 2022 The Open University
24
 * @copyright 2022 The Open University
25
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @covers \backup_module_structure_step
26
 * @covers \backup_module_structure_step
27
 * @covers \restore_module_structure_step
27
 * @covers \restore_module_structure_step
28
 */
28
 */
29
class backup_restore_activity_test extends \advanced_testcase {
29
final class backup_restore_activity_test extends \advanced_testcase {
30
    /**
30
    /**
31
     * Load the backup and restore classes.
31
     * Load the backup and restore classes.
32
     */
32
     */
33
    public static function setUpBeforeClass(): void {
33
    public static function setUpBeforeClass(): void {
34
        global $CFG;
34
        global $CFG;
35
        require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');
35
        require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');
36
        require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
36
        require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
-
 
37
        parent::setUpBeforeClass();
37
    }
38
    }
Línea 38... Línea 39...
38
 
39
 
39
    /**
40
    /**
40
     * Test that duplicating a page preserves the lang setting.
41
     * Test that duplicating a page preserves the lang setting.