Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 30... Línea 30...
30
 * @category    test
30
 * @category    test
31
 * @copyright   2018 Andrew Nicols <andrew@nicols.co.uk>
31
 * @copyright   2018 Andrew Nicols <andrew@nicols.co.uk>
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 * @coversDefaultClass \core_privacy\local\metadata\collection
33
 * @coversDefaultClass \core_privacy\local\metadata\collection
34
 */
34
 */
35
class collection_test extends \advanced_testcase {
35
final class collection_test extends \advanced_testcase {
Línea 36... Línea 36...
36
 
36
 
37
    /**
37
    /**
38
     * Test that adding an unknown type causes the type to be added to the collection.
38
     * Test that adding an unknown type causes the type to be added to the collection.
39
     *
39
     *
Línea 197... Línea 197...
197
    /**
197
    /**
198
     * Data provider to supply a list of valid components.
198
     * Data provider to supply a list of valid components.
199
     *
199
     *
200
     * @return  array
200
     * @return  array
201
     */
201
     */
202
    public function component_list_provider() {
202
    public static function component_list_provider(): array {
203
        return [
203
        return [
204
            ['core_privacy'],
204
            ['core_privacy'],
205
            ['mod_forum'],
205
            ['mod_forum'],
206
        ];
206
        ];
207
    }
207
    }