diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php index 4237d42..3b376db 100644 --- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php +++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php @@ -470,8 +470,10 @@ public function providerTestDateTimezone() { [$date_string, new \DateTimeZone('Australia/Canberra'), 'Australia/Canberra', 'DateTimePlus uses the specified timezone if provided.'], // Create a date object with another date object. [new DateTimePlus('now', 'Pacific/Midway'), NULL, 'Pacific/Midway', 'DateTimePlus uses the specified timezone if provided.'], - // Create a date object from a string with an explicit time zone offset. + // Create a date object from a string with an explicit time zone offset, and a specified time zone. ['2007-01-31T21:00:00-05:00', 'America/New_York', 'America/New_York', 'DateTimePlus uses the specified timezone if provided.'], + // Create a date object from a string with an explicit time zone offset, and an specified time zone. + ['2007-01-31T21:00:00-05:00', NULL, $system_timezone, 'DateTimePlus uses the system timezone when there is no site timezone.'], ]; }