Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 64... Línea 64...
64
    }
64
    }
Línea 65... Línea 65...
65
 
65
 
66
    /**
66
    /**
67
     * Test configuration context.
67
     * Test configuration context.
68
     */
68
     */
69
    public function test_get_configuration_context() {
69
    public function test_get_configuration_context(): void {
70
        $this->assertInstanceOf(context_system::class, $this->handler->get_configuration_context());
70
        $this->assertInstanceOf(context_system::class, $this->handler->get_configuration_context());
Línea 71... Línea 71...
71
    }
71
    }
72
 
72
 
73
    /**
73
    /**
74
     * Test getting config URL.
74
     * Test getting config URL.
75
     */
75
     */
76
    public function test_get_configuration_url() {
76
    public function test_get_configuration_url(): void {
77
        $this->assertInstanceOf(moodle_url::class, $this->handler->get_configuration_url());
77
        $this->assertInstanceOf(moodle_url::class, $this->handler->get_configuration_url());
Línea 78... Línea 78...
78
        $this->assertEquals('/group/grouping_customfield.php', $this->handler->get_configuration_url()->out_as_local_url());
78
        $this->assertEquals('/group/grouping_customfield.php', $this->handler->get_configuration_url()->out_as_local_url());
79
    }
79
    }
80
 
80
 
81
    /**
81
    /**
82
     * Test getting instance context.
82
     * Test getting instance context.
83
     */
83
     */
Línea 84... Línea 84...
84
    public function test_get_instance_context() {
84
    public function test_get_instance_context(): void {
85
        global $COURSE;
85
        global $COURSE;
Línea 96... Línea 96...
96
    }
96
    }
Línea 97... Línea 97...
97
 
97
 
98
    /**
98
    /**
99
     * Test can configure check.
99
     * Test can configure check.
100
     */
100
     */
101
    public function test_can_configure() {
101
    public function test_can_configure(): void {
Línea 102... Línea 102...
102
        $this->resetAfterTest();
102
        $this->resetAfterTest();
103
 
103
 
Línea 114... Línea 114...
114
    }
114
    }
Línea 115... Línea 115...
115
 
115
 
116
    /**
116
    /**
117
     * Test can edit functionality.
117
     * Test can edit functionality.
118
     */
118
     */
119
    public function test_can_edit() {
119
    public function test_can_edit(): void {
Línea 120... Línea 120...
120
        $this->resetAfterTest();
120
        $this->resetAfterTest();
121
 
121
 
122
        $course = self::getDataGenerator()->create_course();
122
        $course = self::getDataGenerator()->create_course();
Línea 137... Línea 137...
137
    }
137
    }
Línea 138... Línea 138...
138
 
138
 
139
    /**
139
    /**
140
     * Test can view functionality.
140
     * Test can view functionality.
141
     */
141
     */
142
    public function test_can_view() {
142
    public function test_can_view(): void {
Línea 143... Línea 143...
143
        $this->resetAfterTest();
143
        $this->resetAfterTest();
144
 
144
 
145
        $course = self::getDataGenerator()->create_course();
145
        $course = self::getDataGenerator()->create_course();