Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 31... Línea 31...
31
class cron_test extends \advanced_testcase {
31
class cron_test extends \advanced_testcase {
32
    /**
32
    /**
33
     * Test that when a record has a skipuntil time that is greater
33
     * Test that when a record has a skipuntil time that is greater
34
     * than the current time the attempt is skipped.
34
     * than the current time the attempt is skipped.
35
     */
35
     */
36
    public function test_skip() {
36
    public function test_skip(): void {
37
        global $DB, $CFG;
37
        global $DB, $CFG;
38
        $this->resetAfterTest();
38
        $this->resetAfterTest();
39
        // Create a RSS feed record with a skip until time set to the future.
39
        // Create a RSS feed record with a skip until time set to the future.
40
        $record = (object) array(
40
        $record = (object) array(
41
            'userid' => 1,
41
            'userid' => 1,
Línea 91... Línea 91...
91
    /**
91
    /**
92
     * Test that when a feed has an error the skip time is increased correctly.
92
     * Test that when a feed has an error the skip time is increased correctly.
93
     *
93
     *
94
     * @dataProvider    skip_time_increase_provider
94
     * @dataProvider    skip_time_increase_provider
95
     */
95
     */
96
    public function test_error($skiptime, $skipuntil, $newvalue) {
96
    public function test_error($skiptime, $skipuntil, $newvalue): void {
97
        global $DB, $CFG;
97
        global $DB, $CFG;
98
        $this->resetAfterTest();
98
        $this->resetAfterTest();
Línea 99... Línea 99...
99
 
99