Commit 46f8a1bb authored by catch's avatar catch
Browse files

Issue #3207086 by benjifisher, larowlan, mondrake, Spokje: [HEAD BROKEN]...

Issue #3207086 by benjifisher, larowlan, mondrake, Spokje: [HEAD BROKEN] Consistent failure in MonthDatePluginTest

(cherry picked from commit fd3efb7f)
parent e84a71fc
......@@ -50,10 +50,14 @@ class MonthDatePluginTest extends ViewTestBase {
*/
public function setUp($import_test_views = TRUE): void {
parent::setUp($import_test_views);
$date1 = '2020-10-01 00:00:00';
$this->node1 = $this->drupalCreateNode(['created' => strtotime($date1)]);
$date2 = '2020-11-01 00:00:00';
$this->node2 = $this->drupalCreateNode(['created' => strtotime($date2)]);
$utc = new \DateTimeZone('UTC');
$format = 'Y-m-d h:i:s';
$this->node1 = $this->drupalCreateNode([
'created' => \DateTime::createFromFormat($format, '2020-10-01 00:00:00', $utc)->getTimestamp(),
]);
$this->node2 = $this->drupalCreateNode([
'created' => \DateTime::createFromFormat($format, '2020-11-01 00:00:00', $utc)->getTimestamp(),
]);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment