Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 26... Línea 26...
26
 * @package    block_rss_client
26
 * @package    block_rss_client
27
 * @copyright  2015 Universit of Nottingham
27
 * @copyright  2015 Universit of Nottingham
28
 * @author     Neill Magill <neill.magill@nottingham.ac.uk>
28
 * @author     Neill Magill <neill.magill@nottingham.ac.uk>
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class cron_test extends \advanced_testcase {
31
final 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(): void {
36
    public function test_skip(): void {
Línea 65... Línea 65...
65
    /**
65
    /**
66
     * Data provider for skip time tests.
66
     * Data provider for skip time tests.
67
     *
67
     *
68
     * @return  array
68
     * @return  array
69
     */
69
     */
70
    public function skip_time_increase_provider(): array {
70
    public static function skip_time_increase_provider(): array {
71
        return [
71
        return [
72
            'Never failed' => [
72
            'Never failed' => [
73
                'skiptime' => 0,
73
                'skiptime' => 0,
74
                'skipuntil' => 0,
74
                'skipuntil' => 0,
75
                'newvalue' => MINSECS * 5,
75
                'newvalue' => MINSECS * 5,