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_handler_registry_test extends \advanced_testcase {
34
class import_handler_registry_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    /**
36
    /**
37
     * Test confirming the behaviour of get_resource_handlers_for_strategy with different params.
37
     * Test confirming the behaviour of get_resource_handlers_for_strategy with different params.
38
     */
38
     */
39
    public function test_get_resource_handlers_for_strategy() {
39
    public function test_get_resource_handlers_for_strategy(): void {
Línea 40... Línea 40...
40
        $this->resetAfterTest();
40
        $this->resetAfterTest();
41
 
41
 
42
        $course = $this->getDataGenerator()->create_course();
42
        $course = $this->getDataGenerator()->create_course();
Línea 59... Línea 59...
59
    }
59
    }
Línea 60... Línea 60...
60
 
60
 
61
    /**
61
    /**
62
     * Test confirming that the results are scoped to the provided user.
62
     * Test confirming that the results are scoped to the provided user.
63
     */
63
     */
64
    public function test_get_resource_handlers_for_strategy_user_scoping() {
64
    public function test_get_resource_handlers_for_strategy_user_scoping(): void {
Línea 65... Línea 65...
65
        $this->resetAfterTest();
65
        $this->resetAfterTest();
66
 
66
 
67
        $course = $this->getDataGenerator()->create_course();
67
        $course = $this->getDataGenerator()->create_course();
Línea 84... Línea 84...
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    /**
86
    /**
87
     * Test confirming that we can find a unique handler based on the module and strategy name.
87
     * Test confirming that we can find a unique handler based on the module and strategy name.
88
     */
88
     */
89
    public function test_get_resource_handler_for_module_and_strategy() {
89
    public function test_get_resource_handler_for_module_and_strategy(): void {
Línea 90... Línea 90...
90
        $this->resetAfterTest();
90
        $this->resetAfterTest();
91
 
91
 
92
        $course = $this->getDataGenerator()->create_course();
92
        $course = $this->getDataGenerator()->create_course();