Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 50... Línea 50...
50
     *
50
     *
51
     * @param array $data Array of user, course and group objects
51
     * @param array $data Array of user, course and group objects
52
     * @param int $now Current Unix timestamp
52
     * @param int $now Current Unix timestamp
53
     * @param int $timetoshowusers The time window (in seconds) to check for the latest logged in users
53
     * @param int $timetoshowusers The time window (in seconds) to check for the latest logged in users
54
     */
54
     */
55
    public function test_fetcher_course1_group_members() {
55
    public function test_fetcher_course1_group_members(): void {
56
        global $CFG;
56
        global $CFG;
Línea 57... Línea 57...
57
 
57
 
58
        $groupid = $this->data['group1']->id;
58
        $groupid = $this->data['group1']->id;
59
        $now = time();
59
        $now = time();
Línea 89... Línea 89...
89
     *
89
     *
90
     * @param array $data Array of user, course and group objects
90
     * @param array $data Array of user, course and group objects
91
     * @param int $now Current Unix timestamp
91
     * @param int $now Current Unix timestamp
92
     * @param int $timetoshowusers The time window (in seconds) to check for the latest logged in users
92
     * @param int $timetoshowusers The time window (in seconds) to check for the latest logged in users
93
     */
93
     */
94
    public function test_fetcher_courses() {
94
    public function test_fetcher_courses(): void {
Línea 95... Línea 95...
95
 
95
 
Línea 96... Línea 96...
96
        global $CFG;
96
        global $CFG;
97
 
97
 
Línea 120... Línea 120...
120
     * Check logged in at the site level (should be 12).
120
     * Check logged in at the site level (should be 12).
121
     *
121
     *
122
     * @param int $now Current Unix timestamp
122
     * @param int $now Current Unix timestamp
123
     * @param int $timetoshowusers The time window (in seconds) to check for the latest logged in users
123
     * @param int $timetoshowusers The time window (in seconds) to check for the latest logged in users
124
     */
124
     */
125
    public function test_fetcher_sitelevel() {
125
    public function test_fetcher_sitelevel(): void {
126
        global $CFG;
126
        global $CFG;
Línea 127... Línea 127...
127
 
127
 
128
        $currentgroup = null;
128
        $currentgroup = null;
129
        $now = time();
129
        $now = time();
Línea 138... Línea 138...
138
    }
138
    }
Línea 139... Línea 139...
139
 
139
 
140
    /**
140
    /**
141
     * Check user visibility setting for course group members.
141
     * Check user visibility setting for course group members.
142
     */
142
     */
143
    public function test_user_visibility_course1_group1_members() {
143
    public function test_user_visibility_course1_group1_members(): void {
Línea 144... Línea 144...
144
        global $CFG;
144
        global $CFG;
145
 
145
 
146
        // Enable users to set their visibility to others in the online users block.
146
        // Enable users to set their visibility to others in the online users block.
Línea 195... Línea 195...
195
    }
195
    }
Línea 196... Línea 196...
196
 
196
 
197
    /**
197
    /**
198
     * Check user visibility setting at course level.
198
     * Check user visibility setting at course level.
199
     */
199
     */
200
    public function test_user_visibility_courses() {
200
    public function test_user_visibility_courses(): void {
Línea 201... Línea 201...
201
        global $CFG;
201
        global $CFG;
202
 
202
 
203
        $currentgroup = null;
203
        $currentgroup = null;
Línea 251... Línea 251...
251
    }
251
    }
Línea 252... Línea 252...
252
 
252
 
253
    /**
253
    /**
254
     * Check user visibility setting at site level.
254
     * Check user visibility setting at site level.
255
     */
255
     */
256
    public function test_user_visibility_sitelevel() {
256
    public function test_user_visibility_sitelevel(): void {
Línea 257... Línea 257...
257
        global $CFG;
257
        global $CFG;
258
 
258
 
259
        $currentgroup = null;
259
        $currentgroup = null;