Skip to content

Commit 2e97655

Browse files
committed
ACP2E-977: Incorrect Dashboard YTD values
1 parent 9a4d7b0 commit 2e97655

File tree

1 file changed

+1
-14
lines changed
  • app/code/Magento/Backend/Test/Unit/Model/Dashboard/Chart

1 file changed

+1
-14
lines changed

app/code/Magento/Backend/Test/Unit/Model/Dashboard/Chart/DateTest.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Magento\Framework\Stdlib\DateTime\TimezoneInterface;
2222
use Magento\Reports\Model\ResourceModel\Order\CollectionFactory;
2323
use Magento\Backend\Model\Dashboard\Period;
24-
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
2524
use Magento\Reports\Model\ResourceModel\Order\Collection;
2625
use Magento\Sales\Model\Order\Config;
2726
use Magento\Sales\Model\ResourceModel\Report\OrderFactory;
@@ -122,11 +121,6 @@ class DateTest extends TestCase
122121
*/
123122
private $collectionFactoryMock;
124123

125-
/**
126-
* @var ObjectManager
127-
*/
128-
private $objectManagerHelper;
129-
130124
/**
131125
* @inheritDoc
132126
*/
@@ -140,14 +134,7 @@ protected function setUp(): void
140134
->expects($this->any())
141135
->method('create')
142136
->willReturn($this->collection);
143-
$this->objectManagerHelper = new ObjectManager($this);
144-
$this->model = $this->objectManagerHelper->getObject(
145-
Date::class,
146-
[
147-
'collectionFactory' => $this->collectionFactoryMock,
148-
'localeDate' => $this->timezoneMock
149-
]
150-
);
137+
$this->model = new Date($this->collectionFactoryMock, $this->timezoneMock);
151138
}
152139

153140
/**

0 commit comments

Comments
 (0)