Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 64... Línea 64...
64
    }
64
    }
Línea 65... Línea 65...
65
 
65
 
66
    /**
66
    /**
67
     * test base_plan class
67
     * test base_plan class
68
     */
68
     */
Línea 69... Línea 69...
69
    function test_base_plan() {
69
    function test_base_plan(): void {
70
 
70
 
71
        // Instantiate
71
        // Instantiate
72
        $bp = new \mock_base_plan('name');
72
        $bp = new \mock_base_plan('name');
Línea 79... Línea 79...
79
    }
79
    }
Línea 80... Línea 80...
80
 
80
 
81
    /**
81
    /**
82
     * test backup_plan class
82
     * test backup_plan class
83
     */
83
     */
Línea 84... Línea 84...
84
    function test_backup_plan() {
84
    function test_backup_plan(): void {
85
 
85
 
86
        // We need one (non interactive) controller for instantiating plan
86
        // We need one (non interactive) controller for instantiating plan
87
        $bc = new backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE,
87
        $bc = new backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE,
Línea 99... Línea 99...
99
    }
99
    }
Línea 100... Línea 100...
100
 
100
 
101
    /**
101
    /**
102
     * wrong base_plan class tests
102
     * wrong base_plan class tests
103
     */
103
     */
Línea 104... Línea 104...
104
    function test_base_plan_wrong() {
104
    function test_base_plan_wrong(): void {
105
 
105
 
106
        // We need one (non interactive) controller for instantiating plan
106
        // We need one (non interactive) controller for instantiating plan
107
        $bc = new backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE,
107
        $bc = new backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE,
Línea 119... Línea 119...
119
    }
119
    }
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * wrong backup_plan class tests
122
     * wrong backup_plan class tests
123
     */
123
     */
Línea 124... Línea 124...
124
    function test_backup_plan_wrong() {
124
    function test_backup_plan_wrong(): void {
125
 
125
 
126
        // Try to pass one wrong controller
126
        // Try to pass one wrong controller
127
        try {
127
        try {