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
    /**
51
    /**
52
     * Test page_view
52
     * Test page_view
53
     * @return void
53
     * @return void
54
     */
54
     */
55
    public function test_page_view() {
55
    public function test_page_view(): void {
Línea 56... Línea 56...
56
        global $CFG;
56
        global $CFG;
57
 
57
 
Línea 88... Línea 88...
88
        $completion = new \completion_info($course);
88
        $completion = new \completion_info($course);
89
        $completiondata = $completion->get_data($cm);
89
        $completiondata = $completion->get_data($cm);
90
        $this->assertEquals(1, $completiondata->completionstate);
90
        $this->assertEquals(1, $completiondata->completionstate);
91
    }
91
    }
Línea 92... Línea 92...
92
 
92
 
93
    public function test_page_core_calendar_provide_event_action() {
93
    public function test_page_core_calendar_provide_event_action(): void {
94
        $this->resetAfterTest();
94
        $this->resetAfterTest();
Línea 95... Línea 95...
95
        $this->setAdminUser();
95
        $this->setAdminUser();
96
 
96
 
Línea 114... Línea 114...
114
        $this->assertInstanceOf('moodle_url', $actionevent->get_url());
114
        $this->assertInstanceOf('moodle_url', $actionevent->get_url());
115
        $this->assertEquals(1, $actionevent->get_item_count());
115
        $this->assertEquals(1, $actionevent->get_item_count());
116
        $this->assertTrue($actionevent->is_actionable());
116
        $this->assertTrue($actionevent->is_actionable());
117
    }
117
    }
Línea 118... Línea 118...
118
 
118
 
119
    public function test_page_core_calendar_provide_event_action_already_completed() {
119
    public function test_page_core_calendar_provide_event_action_already_completed(): void {
Línea 120... Línea 120...
120
        global $CFG;
120
        global $CFG;
121
 
121
 
Línea 151... Línea 151...
151
    }
151
    }
Línea 152... Línea 152...
152
 
152
 
153
    /**
153
    /**
154
     * Test mod_page_core_calendar_provide_event_action with user override
154
     * Test mod_page_core_calendar_provide_event_action with user override
155
     */
155
     */
156
    public function test_page_core_calendar_provide_event_action_user_override() {
156
    public function test_page_core_calendar_provide_event_action_user_override(): void {
Línea 157... Línea 157...
157
        global $CFG, $USER;
157
        global $CFG, $USER;
158
 
158
 
159
        $this->resetAfterTest();
159
        $this->resetAfterTest();