Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
    /**
41
    /**
42
     * Test the behaviour of moodlenet_send_course().
42
     * Test the behaviour of moodlenet_send_course().
43
     *
43
     *
44
     * @covers ::execute
44
     * @covers ::execute
45
     */
45
     */
46
    public function test_moodlenet_send_course() {
46
    public function test_moodlenet_send_course(): void {
47
        global $CFG;
47
        global $CFG;
48
        $this->resetAfterTest();
48
        $this->resetAfterTest();
49
        $this->setAdminUser();
49
        $this->setAdminUser();
Línea 50... Línea 50...
50
 
50
 
Línea 122... Línea 122...
122
     * Test execute_returns() method.
122
     * Test execute_returns() method.
123
     *
123
     *
124
     * @dataProvider return_resource_url_provider
124
     * @dataProvider return_resource_url_provider
125
     * @covers ::execute_returns
125
     * @covers ::execute_returns
126
     */
126
     */
127
    public function test_moodlenet_send_course_return_resource_url(bool $state, string $resourceurl) {
127
    public function test_moodlenet_send_course_return_resource_url(bool $state, string $resourceurl): void {
128
        $this->resetAfterTest();
128
        $this->resetAfterTest();
129
        // Create dummy result with the resourceurl.
129
        // Create dummy result with the resourceurl.
130
        $result = [
130
        $result = [
131
            'status' => true,
131
            'status' => true,
132
            'resourceurl' => $resourceurl,
132
            'resourceurl' => $resourceurl,