Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 34... Línea 34...
34
 
34
 
35
    /**
35
    /**
36
     * Test for provider::get_metadata().
36
     * Test for provider::get_metadata().
37
     * @covers ::get_metadata
37
     * @covers ::get_metadata
38
     */
38
     */
39
    public function test_get_metadata() {
39
    public function test_get_metadata(): void {
40
        $collection = new collection('core_adminpresets');
40
        $collection = new collection('core_adminpresets');
41
        $newcollection = provider::get_metadata($collection);
41
        $newcollection = provider::get_metadata($collection);
42
        $itemcollection = $newcollection->get_collection();
42
        $itemcollection = $newcollection->get_collection();
Línea 47... Línea 47...
47
 
47
 
48
    /**
48
    /**
49
     * Test for provider::get_contexts_for_userid() doesn't return any context.
49
     * Test for provider::get_contexts_for_userid() doesn't return any context.
50
     * @covers ::get_contexts_for_userid
50
     * @covers ::get_contexts_for_userid
51
     */
51
     */
52
    public function test_get_contexts_for_userid() {
52
    public function test_get_contexts_for_userid(): void {
Línea 53... Línea 53...
53
        global $USER;
53
        global $USER;
54
 
54
 
Línea 65... Línea 65...
65
 
65
 
66
    /**
66
    /**
67
     * Test for provider::get_users_in_context() doesn't return any user.
67
     * Test for provider::get_users_in_context() doesn't return any user.
68
     * @covers ::get_users_in_context
68
     * @covers ::get_users_in_context
69
     */
69
     */
70
    public function test_get_users_in_context() {
70
    public function test_get_users_in_context(): void {
Línea 71... Línea 71...
71
        global $USER;
71
        global $USER;
72
 
72
 
Línea 86... Línea 86...
86
 
86
 
87
    /**
87
    /**
88
     * Test for provider::export_user_data().
88
     * Test for provider::export_user_data().
89
     * @covers ::export_user_data
89
     * @covers ::export_user_data
90
     */
90
     */
91
    public function test_export_user_data() {
91
    public function test_export_user_data(): void {
Línea 92... Línea 92...
92
        global $USER;
92
        global $USER;
93
 
93
 
Línea 119... Línea 119...
119
 
119
 
120
    /**
120
    /**
121
     * Test for provider::delete_data_for_all_users_in_context().
121
     * Test for provider::delete_data_for_all_users_in_context().
122
     * @covers ::delete_data_for_all_users_in_context
122
     * @covers ::delete_data_for_all_users_in_context
123
     */
123
     */
124
    public function test_delete_data_for_all_users_in_context() {
124
    public function test_delete_data_for_all_users_in_context(): void {
Línea 125... Línea 125...
125
        global $DB, $USER;
125
        global $DB, $USER;
126
 
126
 
Línea 144... Línea 144...
144
 
144
 
145
    /**
145
    /**
146
     * Test for provider::delete_data_for_user().
146
     * Test for provider::delete_data_for_user().
147
     * @covers ::delete_data_for_user
147
     * @covers ::delete_data_for_user
148
     */
148
     */
149
    public function test_delete_data_for_user() {
149
    public function test_delete_data_for_user(): void {
Línea 150... Línea 150...
150
        global $DB, $USER;
150
        global $DB, $USER;
151
 
151