Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 34... Línea 34...
34
class import_processor_test extends \advanced_testcase {
34
class import_processor_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    /**
36
    /**
37
     * An integration test, this confirms the ability to construct an import processor and run the import for the current user.
37
     * An integration test, this confirms the ability to construct an import processor and run the import for the current user.
38
     */
38
     */
39
    public function test_process_valid_resource() {
39
    public function test_process_valid_resource(): void {
Línea 40... Línea 40...
40
        $this->resetAfterTest();
40
        $this->resetAfterTest();
41
 
41
 
42
        // Set up a user as a teacher in a course.
42
        // Set up a user as a teacher in a course.
Línea 81... Línea 81...
81
    }
81
    }
Línea 82... Línea 82...
82
 
82
 
83
    /**
83
    /**
84
     * Test confirming that an exception is thrown when trying to process a resource which does not exist.
84
     * Test confirming that an exception is thrown when trying to process a resource which does not exist.
85
     */
85
     */
86
    public function test_process_invalid_resource() {
86
    public function test_process_invalid_resource(): void {
Línea 87... Línea 87...
87
        $this->resetAfterTest();
87
        $this->resetAfterTest();
88
 
88
 
89
        // Set up a user as a teacher in a course.
89
        // Set up a user as a teacher in a course.
Línea 113... Línea 113...
113
    }
113
    }
Línea 114... Línea 114...
114
 
114
 
115
    /**
115
    /**
116
     * Test confirming that imports can be completed using alternative import strategies.
116
     * Test confirming that imports can be completed using alternative import strategies.
117
     */
117
     */
118
    public function test_process_alternative_import_strategies() {
118
    public function test_process_alternative_import_strategies(): void {
Línea 119... Línea 119...
119
        $this->resetAfterTest();
119
        $this->resetAfterTest();
120
 
120
 
121
        // Set up a user as a teacher in a course.
121
        // Set up a user as a teacher in a course.