Skip to content

Commit 96820a7

Browse files
committed
ACP2E-347 - update integration test
1 parent 397a04b commit 96820a7

File tree

1 file changed

+3
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Data/Form/Element

1 file changed

+3
-2
lines changed

dev/tests/integration/testsuite/Magento/Framework/Data/Form/Element/DateTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ public function testGetValue(array $data, string $expect): void
5050
*/
5151
public function getValueDataProvider(): array
5252
{
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])];
53+
$stringDates = ['2020-05-18 12:08:16', '1920-10-25 10:10:10'];
54+
$testTimestamps = [strtotime($stringDates[0]), strtotime($stringDates[1])];
55+
$dates = [new \DateTime($stringDates[0]), new \DateTime($stringDates[1])];
5556
$data = [];
5657
foreach ($testTimestamps as $key => $testTimestamp) {
5758
$data[$key] = [

0 commit comments

Comments
 (0)