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
class provider_test extends \core_privacy\tests\provider_testcase {
34
class provider_test extends \core_privacy\tests\provider_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    /**
36
    /**
37
     *  Verify that a collection of metadata is returned for this component and that it just links to an external location.
37
     *  Verify that a collection of metadata is returned for this component and that it just links to an external location.
38
     */
38
     */
39
    public function test_get_metadata() {
39
    public function test_get_metadata(): void {
40
        $collection = new \core_privacy\local\metadata\collection('portfolio_mahara');
40
        $collection = new \core_privacy\local\metadata\collection('portfolio_mahara');
41
        $collection = \portfolio_mahara\privacy\provider::get_metadata($collection);
41
        $collection = \portfolio_mahara\privacy\provider::get_metadata($collection);
42
        $this->assertNotEmpty($collection);
42
        $this->assertNotEmpty($collection);
43
        $items = $collection->get_collection();
43
        $items = $collection->get_collection();