Skip to content

Commit 0cd9612

Browse files
author
Roman Ganin
committed
MAGETWO-36886: Integration test failure in Reports GridTest
1 parent e98a487 commit 0cd9612

File tree

1 file changed

+4
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Reports/Block/Adminhtml/Sales/Sales

1 file changed

+4
-3
lines changed

dev/tests/integration/testsuite/Magento/Reports/Block/Adminhtml/Sales/Sales/GridTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testGetCountTotals($from, $to, $expectedResult)
8080
$block->setFilterData($filterData);
8181

8282
$block->toHtml();
83-
$this->assertEquals($block->getCountTotals(), $expectedResult);
83+
$this->assertEquals($expectedResult, $block->getCountTotals());
8484
}
8585

8686
/**
@@ -90,9 +90,10 @@ public function testGetCountTotals($from, $to, $expectedResult)
9090
*/
9191
public function getCountTotalsDataProvider()
9292
{
93+
$time = time();
9394
return [
94-
[date("Y-m-d", time() + 24 * 60 * 60), date("Y-m-d", time() + 48 * 60 * 60), false],
95-
[date("Y-m-d", time() - 24 * 60 * 60), date("Y-m-d", time() + 24 * 60 * 60), true],
95+
[date("Y-m-d", $time + 48 * 60 * 60), date("Y-m-d", $time + 72 * 60 * 60), false],
96+
[date("Y-m-d", $time - 48 * 60 * 60), date("Y-m-d", $time + 48 * 60 * 60), true],
9697
[null, null, false],
9798
];
9899
}

0 commit comments

Comments
 (0)