Skip to content
Snippets Groups Projects
Commit fd3efb7f 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
parent 8be87ecf
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
......@@ -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(),
]);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment