Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 63... Línea 63...
63
    }
63
    }
Línea 64... Línea 64...
64
 
64
 
65
    /**
65
    /**
66
     * Test configuration context.
66
     * Test configuration context.
67
     */
67
     */
68
    public function test_get_configuration_context() {
68
    public function test_get_configuration_context(): void {
69
        $this->assertInstanceOf(context_system::class, $this->handler->get_configuration_context());
69
        $this->assertInstanceOf(context_system::class, $this->handler->get_configuration_context());
Línea 70... Línea 70...
70
    }
70
    }
71
 
71
 
72
    /**
72
    /**
73
     * Test getting config URL.
73
     * Test getting config URL.
74
     */
74
     */
75
    public function test_get_configuration_url() {
75
    public function test_get_configuration_url(): void {
76
        $this->assertInstanceOf(moodle_url::class, $this->handler->get_configuration_url());
76
        $this->assertInstanceOf(moodle_url::class, $this->handler->get_configuration_url());
Línea 77... Línea 77...
77
        $this->assertEquals('/cohort/customfield.php', $this->handler->get_configuration_url()->out_as_local_url());
77
        $this->assertEquals('/cohort/customfield.php', $this->handler->get_configuration_url()->out_as_local_url());
78
    }
78
    }
79
 
79
 
80
    /**
80
    /**
81
     * Test can configure check.
81
     * Test can configure check.
Línea 82... Línea 82...
82
     */
82
     */
83
    public function test_can_configure() {
83
    public function test_can_configure(): void {
Línea 96... Línea 96...
96
    }
96
    }
Línea 97... Línea 97...
97
 
97
 
98
    /**
98
    /**
99
     * Test getting instance context.
99
     * Test getting instance context.
100
     */
100
     */
101
    public function test_get_instance_context() {
101
    public function test_get_instance_context(): void {
Línea 102... Línea 102...
102
        $this->resetAfterTest();
102
        $this->resetAfterTest();
103
 
103
 
104
        $category = self::getDataGenerator()->create_category();
104
        $category = self::getDataGenerator()->create_category();
Línea 115... Línea 115...
115
    }
115
    }
Línea 116... Línea 116...
116
 
116
 
117
    /**
117
    /**
118
     * Test can edit functionality.
118
     * Test can edit functionality.
119
     */
119
     */
120
    public function test_can_edit() {
120
    public function test_can_edit(): void {
Línea 121... Línea 121...
121
        $this->resetAfterTest();
121
        $this->resetAfterTest();
122
 
122
 
Línea 135... Línea 135...
135
    }
135
    }
Línea 136... Línea 136...
136
 
136
 
137
    /**
137
    /**
138
     * Test can view functionality.
138
     * Test can view functionality.
139
     */
139
     */
140
    public function test_can_view() {
140
    public function test_can_view(): void {
Línea 141... Línea 141...
141
        $this->resetAfterTest();
141
        $this->resetAfterTest();
142
 
142