Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 136... Línea 136...
136
    public function test_needs_mapping(
136
    public function test_needs_mapping(
137
        array $currentfields,
137
        array $currentfields,
138
        array $newfields,
138
        array $newfields,
139
        string $pluginname,
139
        string $pluginname,
140
        bool $expectedresult
140
        bool $expectedresult
141
    ) {
141
    ): void {
Línea 142... Línea 142...
142
 
142
 
Línea 143... Línea 143...
143
        global $USER;
143
        global $USER;
144
 
144
 
Línea 238... Línea 238...
238
        array $newfields,
238
        array $newfields,
239
        string $pluginname,
239
        string $pluginname,
240
        int $fieldstocreate,
240
        int $fieldstocreate,
241
        int $fieldstoremove,
241
        int $fieldstoremove,
242
        int $fieldstoupdate
242
        int $fieldstoupdate
243
    ) {
243
    ): void {
244
        global $USER;
244
        global $USER;
Línea 245... Línea 245...
245
 
245
 
246
        $this->resetAfterTest();
246
        $this->resetAfterTest();
247
        $this->setAdminUser();
247
        $this->setAdminUser();
Línea 300... Línea 300...
300
        array $newfields,
300
        array $newfields,
301
        string $pluginname,
301
        string $pluginname,
302
        int $fieldstocreate,
302
        int $fieldstocreate,
303
        int $fieldstoremove,
303
        int $fieldstoremove,
304
        int $fieldstoupdate
304
        int $fieldstoupdate
305
    ) {
305
    ): void {
306
        global $USER;
306
        global $USER;
Línea 307... Línea 307...
307
 
307
 
308
        $this->resetAfterTest();
308
        $this->resetAfterTest();
309
        $this->setAdminUser();
309
        $this->setAdminUser();
Línea 381... Línea 381...
381
     * @covers ::get_field_names
381
     * @covers ::get_field_names
382
     *
382
     *
383
     * @param array $fields List of fields to get the names from.
383
     * @param array $fields List of fields to get the names from.
384
     * @param string $expected The list of field names expected.
384
     * @param string $expected The list of field names expected.
385
     */
385
     */
386
    public function test_get_field_names(array $fields, string $expected) {
386
    public function test_get_field_names(array $fields, string $expected): void {
387
        global $USER;
387
        global $USER;
Línea 388... Línea 388...
388
 
388
 
389
        $this->resetAfterTest();
389
        $this->resetAfterTest();
390
        $this->setAdminUser();
390
        $this->setAdminUser();
Línea 415... Línea 415...
415
     * Test for create_from_plugin_or_directory creation static method.
415
     * Test for create_from_plugin_or_directory creation static method.
416
     *
416
     *
417
     * @covers ::create_from_plugin_or_directory
417
     * @covers ::create_from_plugin_or_directory
418
     *
418
     *
419
     */
419
     */
420
    public function test_create_from_plugin_or_directory() {
420
    public function test_create_from_plugin_or_directory(): void {
Línea 421... Línea 421...
421
 
421
 
Línea 422... Línea 422...
422
        global $USER;
422
        global $USER;
423
 
423