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 21
21
use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
22
22
use Magento \Reports \Model \ResourceModel \Order \CollectionFactory ;
23
23
use Magento \Backend \Model \Dashboard \Period ;
24
- use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
25
24
use Magento \Reports \Model \ResourceModel \Order \Collection ;
26
25
use Magento \Sales \Model \Order \Config ;
27
26
use Magento \Sales \Model \ResourceModel \Report \OrderFactory ;
@@ -122,11 +121,6 @@ class DateTest extends TestCase
122
121
*/
123
122
private $ collectionFactoryMock ;
124
123
125
- /**
126
- * @var ObjectManager
127
- */
128
- private $ objectManagerHelper ;
129
-
130
124
/**
131
125
* @inheritDoc
132
126
*/
@@ -140,14 +134,7 @@ protected function setUp(): void
140
134
->expects ($ this ->any ())
141
135
->method ('create ' )
142
136
->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 );
151
138
}
152
139
153
140
/**
You can’t perform that action at this time.
0 commit comments