MDL-66135 tool_uploadcourse: case-insensitive date string comparison.
authorPaul Holden <paulh@moodle.com>
Fri, 1 May 2020 08:05:07 +0000 (09:05 +0100)
committerPaul Holden <paulh@moodle.com>
Fri, 1 May 2020 08:05:07 +0000 (09:05 +0100)
Account for PM/pm differences in PHP on different OS.

admin/tool/uploadcourse/tests/course_test.php

index 0af3d93..7d811cb 100644 (file)
@@ -1112,7 +1112,7 @@ class tool_uploadcourse_course_testcase extends advanced_testcase {
 
         // Confirm presence of course custom fields.
         $data = \core_course\customfield\course_handler::create()->export_instance_data_object($course->id);
-        $this->assertEquals('Wednesday, 1 April 2020, 4:00 PM', $data->mydatefield);
+        $this->assertEquals('Wednesday, 1 April 2020, 4:00 PM', $data->mydatefield, '', 0.0, 10, false, true);
         $this->assertEquals($dataupload['customfield_mytextfield'], $data->mytextfield);
         $this->assertContains($dataupload['customfield_mytextareafield'], $data->mytextareafield);
     }