Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 35... Línea 35...
35
 * Class for unit testing mod_quiz\dates.
35
 * Class for unit testing mod_quiz\dates.
36
 *
36
 *
37
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
37
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
38
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 */
39
 */
40
class dates_test extends advanced_testcase {
40
final class dates_test extends advanced_testcase {
Línea 41... Línea 41...
41
 
41
 
42
    /**
42
    /**
43
     * Data provider for get_dates_for_module().
43
     * Data provider for get_dates_for_module().
44
     * @return array[]
44
     * @return array[]
45
     */
45
     */
46
    public function get_dates_for_module_provider(): array {
46
    public static function get_dates_for_module_provider(): array {
47
        $now = time();
47
        $now = time();
48
        $before = $now - DAYSECS;
48
        $before = $now - DAYSECS;
49
        $earlier = $before - DAYSECS;
49
        $earlier = $before - DAYSECS;
50
        $after = $now + DAYSECS;
50
        $after = $now + DAYSECS;