Skip to content

Commit 665b263

Browse files
committed
MC-32981: Integration test fails every 1st day of the mouth - ChartTest::testGetByPeriodWithParam
1 parent 1116437 commit 665b263

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/Sales/_files/order_list_with_invoice.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
'base_grand_total' => 130.00,
4646
'grand_total' => 130.00,
4747
'subtotal' => 130.00,
48-
'created_at' => $dateTime->modify('-1 day')->format(DateTime::DATETIME_PHP_FORMAT),
48+
'created_at' => max($dateTime->modify('-1 day'), $dateTime->modify('first day of this month'))
49+
->format(DateTime::DATETIME_PHP_FORMAT),
4950
],
5051
[
5152
'increment_id' => '100000004',

0 commit comments

Comments
 (0)