Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 97... Línea 97...
97
    }
97
    }
Línea 98... Línea 98...
98
 
98
 
99
    /**
99
    /**
100
     * Test for the get_policy_version() function.
100
     * Test for the get_policy_version() function.
101
     */
101
     */
102
    public function test_get_policy_version() {
102
    public function test_get_policy_version(): void {
Línea 103... Línea 103...
103
        $this->setUser($this->adult);
103
        $this->setUser($this->adult);
104
 
104
 
105
        // View current policy version.
105
        // View current policy version.
Línea 149... Línea 149...
149
    }
149
    }
Línea 150... Línea 150...
150
 
150
 
151
    /**
151
    /**
152
     * Test tool_mobile\external callback to site_policy_handler.
152
     * Test tool_mobile\external callback to site_policy_handler.
153
     */
153
     */
154
    public function test_get_config_with_site_policy_handler() {
154
    public function test_get_config_with_site_policy_handler(): void {
Línea 155... Línea 155...
155
        global $CFG;
155
        global $CFG;
Línea 156... Línea 156...
156
 
156
 
Línea 171... Línea 171...
171
    }
171
    }
Línea 172... Línea 172...
172
 
172
 
173
    /**
173
    /**
174
     * Test for core_privacy\sitepolicy\manager::accept() when site policy handler is set.
174
     * Test for core_privacy\sitepolicy\manager::accept() when site policy handler is set.
175
     */
175
     */
176
    public function test_agree_site_policy_with_handler() {
176
    public function test_agree_site_policy_with_handler(): void {
Línea 177... Línea 177...
177
        global $CFG, $DB, $USER;
177
        global $CFG, $DB, $USER;
178
 
178
 
179
        $this->resetAfterTest(true);
179
        $this->resetAfterTest(true);
Línea 208... Línea 208...
208
    }
208
    }
Línea 209... Línea 209...
209
 
209
 
210
    /**
210
    /**
211
     * Test for core_privacy\sitepolicy\manager::accept() when site policy handler is set.
211
     * Test for core_privacy\sitepolicy\manager::accept() when site policy handler is set.
212
     */
212
     */
213
    public function test_checkcanaccept_with_handler() {
213
    public function test_checkcanaccept_with_handler(): void {
Línea 214... Línea 214...
214
        global $CFG;
214
        global $CFG;
215
 
215
 
216
        $this->resetAfterTest(true);
216
        $this->resetAfterTest(true);
Línea 241... Línea 241...
241
    }
241
    }
Línea 242... Línea 242...
242
 
242
 
243
    /**
243
    /**
244
     * Test for external function get_user_acceptances().
244
     * Test for external function get_user_acceptances().
245
     */
245
     */
246
    public function test_external_get_user_acceptances() {
246
    public function test_external_get_user_acceptances(): void {
Línea 247... Línea 247...
247
        global $CFG;
247
        global $CFG;
248
 
248
 
249
        $this->resetAfterTest(true);
249
        $this->resetAfterTest(true);
Línea 318... Línea 318...
318
    }
318
    }
Línea 319... Línea 319...
319
 
319
 
320
    /**
320
    /**
321
     * Test for external function set_acceptances_status().
321
     * Test for external function set_acceptances_status().
322
     */
322
     */
323
    public function test_external_set_acceptances_status() {
323
    public function test_external_set_acceptances_status(): void {
Línea 324... Línea 324...
324
        global $CFG;
324
        global $CFG;
325
 
325
 
326
        $this->resetAfterTest(true);
326
        $this->resetAfterTest(true);
Línea 429... Línea 429...
429
    }
429
    }
Línea 430... Línea 430...
430
 
430
 
431
    /**
431
    /**
432
     * Test for external function set_acceptances_status decline mandatory.
432
     * Test for external function set_acceptances_status decline mandatory.
433
     */
433
     */
434
    public function test_external_set_acceptances_status_decline_mandatory() {
434
    public function test_external_set_acceptances_status_decline_mandatory(): void {
Línea 435... Línea 435...
435
        global $CFG;
435
        global $CFG;
436
 
436
 
437
        $this->resetAfterTest(true);
437
        $this->resetAfterTest(true);