Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 39... Línea 39...
39
class provider_test extends \core_privacy\tests\provider_testcase {
39
class provider_test extends \core_privacy\tests\provider_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    /**
41
    /**
42
     * When no preference exists, there should be no export.
42
     * When no preference exists, there should be no export.
43
     */
43
     */
44
    public function test_no_preference() {
44
    public function test_no_preference(): void {
45
        global $USER;
45
        global $USER;
46
        $this->resetAfterTest();
46
        $this->resetAfterTest();
Línea 47... Línea 47...
47
        $this->setAdminUser();
47
        $this->setAdminUser();
Línea 53... Línea 53...
53
    }
53
    }
Línea 54... Línea 54...
54
 
54
 
55
    /**
55
    /**
56
     * When preference exists but is empty, there should be no export.
56
     * When preference exists but is empty, there should be no export.
57
     */
57
     */
58
    public function test_empty_preference() {
58
    public function test_empty_preference(): void {
Línea 59... Línea 59...
59
        $this->resetAfterTest();
59
        $this->resetAfterTest();
60
 
60
 
61
        // Create test user, add some preferences.
61
        // Create test user, add some preferences.
Línea 75... Línea 75...
75
    }
75
    }
Línea 76... Línea 76...
76
 
76
 
77
    /**
77
    /**
78
     * When an editor is set, the name of that editor will be reported.
78
     * When an editor is set, the name of that editor will be reported.
79
     */
79
     */
80
    public function test_editor_atto() {
80
    public function test_editor_atto(): void {
Línea 81... Línea 81...
81
        $this->resetAfterTest();
81
        $this->resetAfterTest();
82
 
82
 
83
        // Create test user, add some preferences.
83
        // Create test user, add some preferences.