Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 44... Línea 44...
44
    /**
44
    /**
45
     * Test provider get_contexts_for_userid method
45
     * Test provider get_contexts_for_userid method
46
     *
46
     *
47
     * @return void
47
     * @return void
48
     */
48
     */
49
    public function test_get_contexts_for_userid() {
49
    public function test_get_contexts_for_userid(): void {
50
        $this->resetAfterTest();
50
        $this->resetAfterTest();
Línea 51... Línea 51...
51
 
51
 
52
        $user = $this->getDataGenerator()->create_user();
52
        $user = $this->getDataGenerator()->create_user();
Línea 63... Línea 63...
63
    /**
63
    /**
64
     * Test provider get_users_in_context method
64
     * Test provider get_users_in_context method
65
     *
65
     *
66
     * @return void
66
     * @return void
67
     */
67
     */
68
    public function test_get_users_in_context() {
68
    public function test_get_users_in_context(): void {
69
        $this->resetAfterTest();
69
        $this->resetAfterTest();
Línea 70... Línea 70...
70
 
70
 
71
        $user = $this->getDataGenerator()->create_user();
71
        $user = $this->getDataGenerator()->create_user();
Línea 80... Línea 80...
80
    /**
80
    /**
81
     * Test provider get_users_in_context method for a non-user context
81
     * Test provider get_users_in_context method for a non-user context
82
     *
82
     *
83
     * @return void
83
     * @return void
84
     */
84
     */
85
    public function test_get_users_in_context_non_user_context() {
85
    public function test_get_users_in_context_non_user_context(): void {
86
        $context = \context_system::instance();
86
        $context = \context_system::instance();
Línea 87... Línea 87...
87
 
87
 
88
        $userlist = new userlist($context, 'tool_dataprivacy');
88
        $userlist = new userlist($context, 'tool_dataprivacy');
Línea 94... Línea 94...
94
    /**
94
    /**
95
     * Test provider export_user_data method
95
     * Test provider export_user_data method
96
     *
96
     *
97
     * @return void
97
     * @return void
98
     */
98
     */
99
    public function test_export_user_data() {
99
    public function test_export_user_data(): void {
100
        $this->resetAfterTest();
100
        $this->resetAfterTest();
Línea 101... Línea 101...
101
 
101
 
102
        $user = $this->getDataGenerator()->create_user();
102
        $user = $this->getDataGenerator()->create_user();
Línea 150... Línea 150...
150
    /**
150
    /**
151
     * Test class export_user_preferences method
151
     * Test class export_user_preferences method
152
     *
152
     *
153
     * @return void
153
     * @return void
154
     */
154
     */
155
    public function test_export_user_preferences() {
155
    public function test_export_user_preferences(): void {
156
        $this->resetAfterTest();
156
        $this->resetAfterTest();
Línea 157... Línea 157...
157
 
157
 
158
        $user = $this->getDataGenerator()->create_user();
158
        $user = $this->getDataGenerator()->create_user();