Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 59... Línea 59...
59
    }
59
    }
Línea 60... Línea 60...
60
 
60
 
61
    /**
61
    /**
62
     * Test report_log_supports_logstore.
62
     * Test report_log_supports_logstore.
63
     */
63
     */
64
    public function test_report_log_supports_logstore() {
64
    public function test_report_log_supports_logstore(): void {
65
        $logmanager = get_log_manager();
65
        $logmanager = get_log_manager();
Línea 66... Línea 66...
66
        $allstores = \core_component::get_plugin_list_with_class('logstore', 'log\store');
66
        $allstores = \core_component::get_plugin_list_with_class('logstore', 'log\store');
67
 
67
 
Línea 80... Línea 80...
80
    }
80
    }
Línea 81... Línea 81...
81
 
81
 
82
    /**
82
    /**
83
     * Tests the report_log_myprofile_navigation() function as an admin viewing the logs for a user.
83
     * Tests the report_log_myprofile_navigation() function as an admin viewing the logs for a user.
84
     */
84
     */
85
    public function test_report_log_myprofile_navigation() {
85
    public function test_report_log_myprofile_navigation(): void {
86
        // Set as the admin.
86
        // Set as the admin.
87
        $this->setAdminUser();
87
        $this->setAdminUser();
Línea 88... Línea 88...
88
        $iscurrentuser = false;
88
        $iscurrentuser = false;
Línea 96... Línea 96...
96
    }
96
    }
Línea 97... Línea 97...
97
 
97
 
98
    /**
98
    /**
99
     * Tests the report_log_myprofile_navigation() function as a user without permission.
99
     * Tests the report_log_myprofile_navigation() function as a user without permission.
100
     */
100
     */
101
    public function test_report_log_myprofile_navigation_without_permission() {
101
    public function test_report_log_myprofile_navigation_without_permission(): void {
102
        // Set to the other user.
102
        // Set to the other user.
103
        $this->setUser($this->user);
103
        $this->setUser($this->user);
Línea 104... Línea 104...
104
        $iscurrentuser = true;
104
        $iscurrentuser = true;