File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
app/code/Magento/Backend/Test/Unit/Model/Dashboard/Chart Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 2121use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
2222use Magento \Reports \Model \ResourceModel \Order \CollectionFactory ;
2323use Magento \Backend \Model \Dashboard \Period ;
24- use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
2524use Magento \Reports \Model \ResourceModel \Order \Collection ;
2625use Magento \Sales \Model \Order \Config ;
2726use 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 /**
You can’t perform that action at this time.
0 commit comments