Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 49... Línea 49...
49
     * Test the dashboard viewed event.
49
     * Test the dashboard viewed event.
50
     *
50
     *
51
     * There is no external API for viewing the dashboard, so the unit test will simply
51
     * There is no external API for viewing the dashboard, so the unit test will simply
52
     * create and trigger the event and ensure data is returned as expected.
52
     * create and trigger the event and ensure data is returned as expected.
53
     */
53
     */
54
    public function test_dashboard_viewed() {
54
    public function test_dashboard_viewed(): void {
Línea 55... Línea 55...
55
 
55
 
56
        $user = $this->user;
56
        $user = $this->user;
57
        // Trigger an event: dashboard viewed.
57
        // Trigger an event: dashboard viewed.
58
        $eventparams = array(
58
        $eventparams = array(
Línea 78... Línea 78...
78
     * We will reset the user dashboard to
78
     * We will reset the user dashboard to
79
     * trigger the event and ensure data is returned as expected.
79
     * trigger the event and ensure data is returned as expected.
80
     *
80
     *
81
     * @covers ::my_reset_page
81
     * @covers ::my_reset_page
82
     */
82
     */
83
    public function test_dashboard_reset() {
83
    public function test_dashboard_reset(): void {
84
        global $CFG, $DB;
84
        global $CFG, $DB;
85
        require_once($CFG->dirroot . '/my/lib.php');
85
        require_once($CFG->dirroot . '/my/lib.php');
Línea 86... Línea 86...
86
 
86
 
87
        $user = $this->user;
87
        $user = $this->user;
Línea 148... Línea 148...
148
     * We will reset all user dashboards to
148
     * We will reset all user dashboards to
149
     * trigger the event and ensure data is returned as expected.
149
     * trigger the event and ensure data is returned as expected.
150
     *
150
     *
151
     * @covers ::my_reset_page_for_all_users
151
     * @covers ::my_reset_page_for_all_users
152
     */
152
     */
153
    public function test_dashboards_reset() {
153
    public function test_dashboards_reset(): void {
154
        global $CFG, $USER, $DB;
154
        global $CFG, $USER, $DB;
155
        require_once($CFG->dirroot . '/my/lib.php');
155
        require_once($CFG->dirroot . '/my/lib.php');
Línea 156... Línea 156...
156
 
156