Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 *
34
 *
35
 * @copyright   2018 Andrew Nicols <andrew@nicols.co.uk>
35
 * @copyright   2018 Andrew Nicols <andrew@nicols.co.uk>
36
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @coversDefaultClass \core_privacy\local\request\contextlist_base
37
 * @coversDefaultClass \core_privacy\local\request\contextlist_base
38
 */
38
 */
39
class contextlist_base_test extends advanced_testcase {
39
final class contextlist_base_test extends advanced_testcase {
40
    /**
40
    /**
41
     * Ensure that get_contextids returns the list of unique contextids.
41
     * Ensure that get_contextids returns the list of unique contextids.
42
     *
42
     *
43
     * @dataProvider    get_contextids_provider
43
     * @dataProvider    get_contextids_provider
44
     * @param   array   $input List of context IDs
44
     * @param   array   $input List of context IDs
Línea 62... Línea 62...
62
    /**
62
    /**
63
     * Provider for the list of contextids.
63
     * Provider for the list of contextids.
64
     *
64
     *
65
     * @return array
65
     * @return array
66
     */
66
     */
67
    public function get_contextids_provider() {
67
    public static function get_contextids_provider(): array {
68
        return [
68
        return [
69
            'basic' => [
69
            'basic' => [
70
                [1, 2, 3, 4, 5],
70
                [1, 2, 3, 4, 5],
71
                [1, 2, 3, 4, 5],
71
                [1, 2, 3, 4, 5],
72
                5,
72
                5,