We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397a04b commit 96820a7Copy full SHA for 96820a7
dev/tests/integration/testsuite/Magento/Framework/Data/Form/Element/DateTest.php
@@ -50,8 +50,9 @@ public function testGetValue(array $data, string $expect): void
50
*/
51
public function getValueDataProvider(): array
52
{
53
- $testTimestamps = [strtotime('2020-05-18 12:08:16'), strtotime('1920-10-25 10:10:10')];
54
- $dates = [new \DateTime($testTimestamps[0]), new \DateTime($testTimestamps[1])];
+ $stringDates = ['2020-05-18 12:08:16', '1920-10-25 10:10:10'];
+ $testTimestamps = [strtotime($stringDates[0]), strtotime($stringDates[1])];
55
+ $dates = [new \DateTime($stringDates[0]), new \DateTime($stringDates[1])];
56
$data = [];
57
foreach ($testTimestamps as $key => $testTimestamp) {
58
$data[$key] = [
0 commit comments