Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 57... Línea 57...
57
    }
57
    }
Línea 58... Línea 58...
58
 
58
 
59
    /**
59
    /**
60
     * Test report_log_supports_logstore.
60
     * Test report_log_supports_logstore.
61
     */
61
     */
62
    public function test_report_participation_supports_logstore() {
62
    public function test_report_participation_supports_logstore(): void {
63
        $logmanager = get_log_manager();
63
        $logmanager = get_log_manager();
Línea 64... Línea 64...
64
        $allstores = \core_component::get_plugin_list_with_class('logstore', 'log\store');
64
        $allstores = \core_component::get_plugin_list_with_class('logstore', 'log\store');
65
 
65
 
Línea 77... Línea 77...
77
    }
77
    }
Línea 78... Línea 78...
78
 
78
 
79
    /**
79
    /**
80
     * Tests the report_stats_myprofile_navigation() function.
80
     * Tests the report_stats_myprofile_navigation() function.
81
     */
81
     */
82
    public function test_report_stats_myprofile_navigation() {
82
    public function test_report_stats_myprofile_navigation(): void {
83
        $this->setAdminUser();
83
        $this->setAdminUser();
Línea 84... Línea 84...
84
        $iscurrentuser = false;
84
        $iscurrentuser = false;
85
 
85
 
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Tests the report_stats_myprofile_navigation() function when stats are disabled.
96
     * Tests the report_stats_myprofile_navigation() function when stats are disabled.
97
     */
97
     */
98
    public function test_report_stats_myprofile_navigation_stats_disabled() {
98
    public function test_report_stats_myprofile_navigation_stats_disabled(): void {
99
        $this->setAdminUser();
99
        $this->setAdminUser();
Línea 100... Línea 100...
100
        $iscurrentuser = false;
100
        $iscurrentuser = false;
101
 
101
 
Línea 109... Línea 109...
109
    }
109
    }
Línea 110... Línea 110...
110
 
110
 
111
    /**
111
    /**
112
     * Tests the report_stats_myprofile_navigation() function without permission.
112
     * Tests the report_stats_myprofile_navigation() function without permission.
113
     */
113
     */
114
    public function test_report_stats_myprofile_navigation_without_permission() {
114
    public function test_report_stats_myprofile_navigation_without_permission(): void {
115
        // Try to see as a user without permission.
115
        // Try to see as a user without permission.
116
        $this->setUser($this->user);
116
        $this->setUser($this->user);
Línea 117... Línea 117...
117
        $iscurrentuser = true;
117
        $iscurrentuser = true;