Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 35... Línea 35...
35
     *
35
     *
36
     * @param string $usertype The user to setup for - admin, guest, regular user
36
     * @param string $usertype The user to setup for - admin, guest, regular user
37
     * @param string $expected The expected nodes
37
     * @param string $expected The expected nodes
38
     * @dataProvider setting_initialise_provider
38
     * @dataProvider setting_initialise_provider
39
     */
39
     */
40
    public function test_setting_initialise($usertype, $expected) {
40
    public function test_setting_initialise($usertype, $expected): void {
41
        global $PAGE;
41
        global $PAGE;
42
        $PAGE->set_url("/");
42
        $PAGE->set_url("/");
43
        $this->resetAfterTest();
43
        $this->resetAfterTest();
44
        if ($usertype == 'admin') {
44
        if ($usertype == 'admin') {
45
            $this->setAdminUser();
45
            $this->setAdminUser();