Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 24... Línea 24...
24
 *
24
 *
25
 * @package    customfield_date
25
 * @package    customfield_date
26
 * @copyright  2019 Marina Glancy
26
 * @copyright  2019 Marina Glancy
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
28
 */
29
class plugin_test extends \advanced_testcase {
29
final class plugin_test extends \advanced_testcase {
Línea 30... Línea 30...
30
 
30
 
31
    /** @var stdClass[]  */
31
    /** @var stdClass[]  */
32
    private $courses = [];
32
    private $courses = [];
33
    /** @var \core_customfield\category_controller */
33
    /** @var \core_customfield\category_controller */
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * Tests set up.
41
     * Tests set up.
42
     */
42
     */
-
 
43
    public function setUp(): void {
43
    public function setUp(): void {
44
        parent::setUp();
Línea 44... Línea 45...
44
        $this->resetAfterTest();
45
        $this->resetAfterTest();
Línea 45... Línea 46...
45
 
46
 
Línea 167... Línea 168...
167
    /**
168
    /**
168
     * Data provider for {@see test_parse_value}
169
     * Data provider for {@see test_parse_value}
169
     *
170
     *
170
     * @return array
171
     * @return array
171
     */
172
     */
172
    public function parse_value_provider(): array {
173
    public static function parse_value_provider(): array {
173
        return [
174
        return [
174
            // Valid times.
175
            // Valid times.
175
            ['2019-10-01', strtotime('2019-10-01')],
176
            ['2019-10-01', strtotime('2019-10-01')],
176
            ['2019-10-01 14:00', strtotime('2019-10-01 14:00')],
177
            ['2019-10-01 14:00', strtotime('2019-10-01 14:00')],
177
            // Invalid times.
178
            // Invalid times.