Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 61... Línea 61...
61
    }
61
    }
Línea 62... Línea 62...
62
 
62
 
63
    /**
63
    /**
64
     * Tests the report_userssesions_myprofile_navigation() function as an admin.
64
     * Tests the report_userssesions_myprofile_navigation() function as an admin.
65
     */
65
     */
66
    public function test_report_usersessions_myprofile_navigation_as_admin() {
66
    public function test_report_usersessions_myprofile_navigation_as_admin(): void {
67
        $this->setAdminUser();
67
        $this->setAdminUser();
Línea 68... Línea 68...
68
        $iscurrentuser = false;
68
        $iscurrentuser = false;
69
 
69
 
Línea 75... Línea 75...
75
    }
75
    }
Línea 76... Línea 76...
76
 
76
 
77
    /**
77
    /**
78
     * Tests the report_userssesions_myprofile_navigation() function as the currently logged in user.
78
     * Tests the report_userssesions_myprofile_navigation() function as the currently logged in user.
79
     */
79
     */
80
    public function test_report_usersessions_myprofile_navigation_as_current_user() {
80
    public function test_report_usersessions_myprofile_navigation_as_current_user(): void {
81
        $this->setUser($this->user);
81
        $this->setUser($this->user);
Línea 82... Línea 82...
82
        $iscurrentuser = true;
82
        $iscurrentuser = true;
83
 
83
 
Línea 88... Línea 88...
88
    }
88
    }
Línea 89... Línea 89...
89
 
89
 
90
    /**
90
    /**
91
     * Tests the report_userssesions_myprofile_navigation() function as a guest.
91
     * Tests the report_userssesions_myprofile_navigation() function as a guest.
92
     */
92
     */
93
    public function test_report_usersessions_myprofile_navigation_as_guest() {
93
    public function test_report_usersessions_myprofile_navigation_as_guest(): void {
94
        $this->setGuestUser();
94
        $this->setGuestUser();
Línea 95... Línea 95...
95
        $iscurrentuser = true;
95
        $iscurrentuser = true;
96
 
96
 
Línea 101... Línea 101...
101
    }
101
    }
Línea 102... Línea 102...
102
 
102
 
103
    /**
103
    /**
104
     * Tests the report_userssesions_myprofile_navigation() function as a user without permission.
104
     * Tests the report_userssesions_myprofile_navigation() function as a user without permission.
105
     */
105
     */
106
    public function test_report_usersessions_myprofile_navigation_without_permission() {
106
    public function test_report_usersessions_myprofile_navigation_without_permission(): void {
107
        // Try to see as a user without permission.
107
        // Try to see as a user without permission.
108
        $user2 = $this->getDataGenerator()->create_user();
108
        $user2 = $this->getDataGenerator()->create_user();
109
        $this->setUser($user2);
109
        $this->setUser($user2);