Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 37... Línea 37...
37
class async_helper_test extends \advanced_testcase {
37
class async_helper_test extends \advanced_testcase {
Línea 38... Línea 38...
38
 
38
 
39
    /**
39
    /**
40
     * Tests sending message for asynchronous backup.
40
     * Tests sending message for asynchronous backup.
41
     */
41
     */
42
    public function test_send_message() {
42
    public function test_send_message(): void {
43
        global $DB, $USER;
43
        global $DB, $USER;
44
        $this->preventResetByRollback();
44
        $this->preventResetByRollback();
45
        $this->resetAfterTest(true);
45
        $this->resetAfterTest(true);
Línea 91... Línea 91...
91
    }
91
    }
Línea 92... Línea 92...
92
 
92
 
93
    /**
93
    /**
94
     * Tests getting the asynchronous backup table items.
94
     * Tests getting the asynchronous backup table items.
95
     */
95
     */
96
    public function test_get_async_backups() {
96
    public function test_get_async_backups(): void {
Línea 97... Línea 97...
97
        global $DB, $CFG, $USER, $PAGE;
97
        global $DB, $CFG, $USER, $PAGE;
98
 
98
 
99
        $this->resetAfterTest(true);
99
        $this->resetAfterTest(true);
Línea 148... Línea 148...
148
    }
148
    }
Línea 149... Línea 149...
149
 
149
 
150
    /**
150
    /**
151
     * Tests getting the backup record.
151
     * Tests getting the backup record.
152
     */
152
     */
153
    public function test_get_backup_record() {
153
    public function test_get_backup_record(): void {
Línea 154... Línea 154...
154
        global $USER;
154
        global $USER;
155
 
155
 
156
        $this->resetAfterTest();
156
        $this->resetAfterTest();
Línea 170... Línea 170...
170
    }
170
    }
Línea 171... Línea 171...
171
 
171
 
172
    /**
172
    /**
173
     * Tests is async pending conditions.
173
     * Tests is async pending conditions.
174
     */
174
     */
175
    public function test_is_async_pending() {
175
    public function test_is_async_pending(): void {
Línea 176... Línea 176...
176
        global $USER;
176
        global $USER;
177
 
177
 
178
        $this->resetAfterTest();
178
        $this->resetAfterTest();
Línea 201... Línea 201...
201
    }
201
    }
Línea 202... Línea 202...
202
 
202
 
203
    /**
203
    /**
204
     * Tests is async pending conditions for course copies.
204
     * Tests is async pending conditions for course copies.
205
     */
205
     */
206
    public function test_is_async_pending_copy() {
206
    public function test_is_async_pending_copy(): void {
Línea 207... Línea 207...
207
        global $USER;
207
        global $USER;
208
 
208
 
209
        $this->resetAfterTest();
209
        $this->resetAfterTest();