Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
    }
38
    }
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * Test calendar cron task with a working subscription URL.
41
     * Test calendar cron task with a working subscription URL.
42
     */
42
     */
43
    public function test_cron_working_url() {
43
    public function test_cron_working_url(): void {
44
        // ICal URL from external test repo.
44
        // ICal URL from external test repo.
Línea 45... Línea 45...
45
        $subscriptionurl = $this->getExternalTestFileUrl('/ical.ics');
45
        $subscriptionurl = $this->getExternalTestFileUrl('/ical.ics');
46
 
46
 
Línea 62... Línea 62...
62
    }
62
    }
Línea 63... Línea 63...
63
 
63
 
64
    /**
64
    /**
65
     * Test calendar cron task with a broken subscription URL.
65
     * Test calendar cron task with a broken subscription URL.
66
     */
66
     */
67
    public function test_cron_broken_url() {
67
    public function test_cron_broken_url(): void {
68
        $subscription = new \stdClass();
68
        $subscription = new \stdClass();
69
        $subscription->eventtype = 'site';
69
        $subscription->eventtype = 'site';
70
        $subscription->name = 'test';
70
        $subscription->name = 'test';
71
        $subscription->url = 'brokenurl';
71
        $subscription->url = 'brokenurl';