function FormatDateTest::providerTestDeprecatedTimezoneConfigurationKey
Data provider for testDeprecatedTimezoneConfigurationKey.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ FormatDateTest.php, line 97
Class
- FormatDateTest
- Tests the format date process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function providerTestDeprecatedTimezoneConfigurationKey() {
return [
[
'configuration' => [
'from_format' => 'Y-m-d\\TH:i:sO',
'to_format' => 'c e',
'timezone' => 'America/Managua',
],
'value' => '2004-12-19T10:19:42-0600',
'expected' => '2004-12-19T10:19:42-06:00 -06:00',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.