Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 40... Línea 40...
40
    /**
40
    /**
41
     * Basic test of creation of repository types.
41
     * Basic test of creation of repository types.
42
     *
42
     *
43
     * @return void
43
     * @return void
44
     */
44
     */
45
    public function test_create_type() {
45
    public function test_create_type(): void {
46
        global $DB;
46
        global $DB;
47
        $this->resetAfterTest(true);
47
        $this->resetAfterTest(true);
Línea 48... Línea 48...
48
 
48
 
49
        // All the repository types.
49
        // All the repository types.
Línea 81... Línea 81...
81
    /**
81
    /**
82
     * Ensure that the type options are properly saved.
82
     * Ensure that the type options are properly saved.
83
     *
83
     *
84
     * @return void
84
     * @return void
85
     */
85
     */
86
    public function test_create_type_custom_options() {
86
    public function test_create_type_custom_options(): void {
87
        global $DB;
87
        global $DB;
88
        $this->resetAfterTest(true);
88
        $this->resetAfterTest(true);
Línea 89... Línea 89...
89
 
89
 
90
        // Single instances.
90
        // Single instances.
Línea 151... Línea 151...
151
    /**
151
    /**
152
     * Covers basic testing of instance creation.
152
     * Covers basic testing of instance creation.
153
     *
153
     *
154
     * @return void
154
     * @return void
155
     */
155
     */
156
    public function test_create_instance() {
156
    public function test_create_instance(): void {
157
        global $DB;
157
        global $DB;
158
        $this->resetAfterTest(true);
158
        $this->resetAfterTest(true);
Línea 159... Línea 159...
159
 
159
 
160
        $course = $this->getDataGenerator()->create_course();
160
        $course = $this->getDataGenerator()->create_course();