Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
    }
38
    }
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * Test returning metadata.
41
     * Test returning metadata.
42
     */
42
     */
43
    public function test_get_metadata() {
43
    public function test_get_metadata(): void {
44
        $collection = new \core_privacy\local\metadata\collection('message_email');
44
        $collection = new \core_privacy\local\metadata\collection('message_email');
45
        $collection = \message_email\privacy\provider::get_metadata($collection);
45
        $collection = \message_email\privacy\provider::get_metadata($collection);
46
        $this->assertNotEmpty($collection);
46
        $this->assertNotEmpty($collection);
Línea 47... Línea 47...
47
    }
47
    }
48
 
48
 
49
    /**
49
    /**
50
     * Test getting the context for the user ID related to this plugin.
50
     * Test getting the context for the user ID related to this plugin.
51
     */
51
     */
Línea 52... Línea 52...
52
    public function test_get_contexts_for_userid() {
52
    public function test_get_contexts_for_userid(): void {
53
        $user = $this->getDataGenerator()->create_user();
53
        $user = $this->getDataGenerator()->create_user();
54
 
54