16
16
use Magento \CatalogImportExport \Model \Import \Product \RowValidatorInterface as RowValidatorInterface ;
17
17
use Magento \CatalogImportExport \Model \Import \Product \StoreResolver ;
18
18
use Magento \CatalogImportExport \Model \Import \Proxy \Product \ResourceModelFactory as ResourceFactory ;
19
- use Magento \Eav \Model \Config ;
20
19
use Magento \Eav \Model \Entity \Type ;
21
20
use Magento \Framework \App \ResourceConnection ;
22
21
use Magento \Framework \DB \Adapter \AdapterInterface ;
26
25
use Magento \Framework \Json \Helper \Data ;
27
26
use Magento \Framework \Stdlib \DateTime \DateTime ;
28
27
use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
29
- use Magento \Framework \Stdlib \StringUtils ;
30
28
use Magento \ImportExport \Model \Import ;
31
29
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
32
30
use Magento \ImportExport \Model \ResourceModel \Helper ;
@@ -99,11 +97,6 @@ class AdvancedPricingTest extends AbstractImportTestCase
99
97
*/
100
98
protected $ dataSourceModel ;
101
99
102
- /**
103
- * @var Config
104
- */
105
- protected $ eavConfig ;
106
-
107
100
/**
108
101
* @var TimezoneInterface|MockObject
109
102
*/
@@ -139,11 +132,6 @@ class AdvancedPricingTest extends AbstractImportTestCase
139
132
*/
140
133
protected $ advancedPricing ;
141
134
142
- /**
143
- * @var StringUtils
144
- */
145
- protected $ stringObject ;
146
-
147
135
/**
148
136
* @var ProcessingErrorAggregatorInterface
149
137
*/
@@ -165,10 +153,8 @@ protected function setUp(): void
165
153
);
166
154
$ this ->resource ->method ('getConnection ' )->willReturn ($ this ->connection );
167
155
$ this ->dataSourceModel = $ this ->createMock (\Magento \ImportExport \Model \ResourceModel \Import \Data::class);
168
- $ this ->eavConfig = $ this ->createMock (Config::class);
169
156
$ entityType = $ this ->createMock (Type::class);
170
157
$ entityType ->method ('getEntityTypeId ' )->willReturn ('' );
171
- $ this ->eavConfig ->method ('getEntityType ' )->willReturn ($ entityType );
172
158
$ this ->resourceFactory = $ this ->getMockBuilder (
173
159
\Magento \CatalogImportExport \Model \Import \Proxy \Product \ResourceModelFactory::class
174
160
)
@@ -193,7 +179,6 @@ protected function setUp(): void
193
179
$ this ->tierPriceValidator = $ this ->createMock (
194
180
TierPrice::class
195
181
);
196
- $ this ->stringObject = $ this ->createMock (StringUtils::class);
197
182
$ this ->errorAggregator = $ this ->getErrorAggregatorObject ();
198
183
$ this ->dateTime = $ this ->getMockBuilder (DateTime::class)
199
184
->disableOriginalConstructor ()
@@ -1070,10 +1055,8 @@ private function getAdvancedPricingMock($methods = [])
1070
1055
$ this ->jsonHelper ,
1071
1056
$ this ->importExportData ,
1072
1057
$ this ->dataSourceModel ,
1073
- $ this ->eavConfig ,
1074
1058
$ this ->resource ,
1075
1059
$ this ->resourceHelper ,
1076
- $ this ->stringObject ,
1077
1060
$ this ->errorAggregator ,
1078
1061
$ this ->dateTime ,
1079
1062
$ this ->resourceFactory ,
0 commit comments