Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 43... Línea 43...
43
    }
43
    }
Línea 44... Línea 44...
44
 
44
 
45
    /**
45
    /**
46
     * Test for function \core_customfield\field_controller::create()
46
     * Test for function \core_customfield\field_controller::create()
47
     */
47
     */
48
    public function test_constructor() {
48
    public function test_constructor(): void {
49
        global $DB;
49
        global $DB;
Línea 50... Línea 50...
50
        $this->resetAfterTest();
50
        $this->resetAfterTest();
51
 
51
 
Línea 90... Línea 90...
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    /**
92
    /**
93
     * Test for function \core_customfield\field_controller::create() in case of wrong parameters
93
     * Test for function \core_customfield\field_controller::create() in case of wrong parameters
94
     */
94
     */
95
    public function test_constructor_errors() {
95
    public function test_constructor_errors(): void {
96
        global $DB;
96
        global $DB;
Línea 97... Línea 97...
97
        $this->resetAfterTest();
97
        $this->resetAfterTest();
98
 
98
 
Línea 164... Línea 164...
164
     * Tests for behaviour of:
164
     * Tests for behaviour of:
165
     * \core_customfield\field_controller::save()
165
     * \core_customfield\field_controller::save()
166
     * \core_customfield\field_controller::get()
166
     * \core_customfield\field_controller::get()
167
     * \core_customfield\field_controller::get_category()
167
     * \core_customfield\field_controller::get_category()
168
     */
168
     */
169
    public function test_create_field() {
169
    public function test_create_field(): void {
170
        global $DB;
170
        global $DB;
171
        $this->resetAfterTest();
171
        $this->resetAfterTest();
Línea 172... Línea 172...
172
 
172
 
173
        $lpg = $this->get_generator();
173
        $lpg = $this->get_generator();
Línea 194... Línea 194...
194
    }
194
    }
Línea 195... Línea 195...
195
 
195
 
196
    /**
196
    /**
197
     * Tests for \core_customfield\field_controller::delete() behaviour.
197
     * Tests for \core_customfield\field_controller::delete() behaviour.
198
     */
198
     */
199
    public function test_delete_field() {
199
    public function test_delete_field(): void {
200
        global $DB;
200
        global $DB;
Línea 201... Línea 201...
201
        $this->resetAfterTest();
201
        $this->resetAfterTest();
202
 
202
 
Línea 223... Línea 223...
223
    }
223
    }
Línea 224... Línea 224...
224
 
224
 
225
    /**
225
    /**
226
     * Tests for \core_customfield\field_controller::get_configdata_property() behaviour.
226
     * Tests for \core_customfield\field_controller::get_configdata_property() behaviour.
227
     */
227
     */
228
    public function test_get_configdata_property() {
228
    public function test_get_configdata_property(): void {
Línea 229... Línea 229...
229
        $this->resetAfterTest();
229
        $this->resetAfterTest();
230
 
230
 
231
        $lpg = $this->get_generator();
231
        $lpg = $this->get_generator();