Skip to content
Snippets Groups Projects
Verified Commit 3507ab53 authored by Dave Long's avatar Dave Long
Browse files

Issue #3336283 by alexpott:...

Issue #3336283 by alexpott: Drupal\Tests\datetime\Functional\DateTimeWidgetTest fails when run at midnight

(cherry picked from commit 97fd6ea2)
parent 1bb00882
No related branches found
No related tags found
14 merge requests!8394[warning] array_flip(): Can only flip STRING and INTEGER values, when saving a non-revisionable custom content entity,!7780issue 3443822: fix for 'No route found for the specified format html. Supported formats: json, xml.',!5013Issue #3071143: Table Render Array Example Is Incorrect,!4848Issue #1566662: Update module should send notifications on Thursdays,!4792Issue #2230689: Remove redundant "Italic" style,!4220Issue #3368223: Link field > Access to internal links is not checked on display.,!3884Issue #3356842,!3870Issue #3087868,!3812Draft: Issue #3339373 by alexpott, andypost, mondrake:...,!3686Issue #3219967 against 9.5.x,!3683Issue #2939397: Clearing AliasManager cache with root path raises warning,!2205Quote all names in the regions section.,!1459Issue #3087632: menu_name max length is too long,!866Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
...@@ -81,9 +81,11 @@ public function testDateonlyDefaultValue() { ...@@ -81,9 +81,11 @@ public function testDateonlyDefaultValue() {
$this->setSiteTimezone($timezone); $this->setSiteTimezone($timezone);
$this->assertEquals($timezone, $this->config('system.date')->get('timezone.default'), 'Time zone set to ' . $timezone); $this->assertEquals($timezone, $this->config('system.date')->get('timezone.default'), 'Time zone set to ' . $timezone);
// The time of the request is determined very early on in the request so
// use the current time prior to making a request.
$request_time = $this->container->get('datetime.time')->getCurrentTime();
$this->drupalGet('node/add/dateonly_content'); $this->drupalGet('node/add/dateonly_content');
$request_time = $this->container->get('datetime.time')->getRequestTime();
$today = $this->dateFormatter->format($request_time, 'html_date', NULL, $timezone); $today = $this->dateFormatter->format($request_time, 'html_date', NULL, $timezone);
$this->assertSession()->fieldValueEquals('field_dateonly[0][value][date]', $today); $this->assertSession()->fieldValueEquals('field_dateonly[0][value][date]', $today);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment