@@ -127,11 +127,11 @@ protected function setUp()
127
127
*/
128
128
private function getModel ()
129
129
{
130
- $ this ->eavEntityMock ->expects ($ this ->once ())
130
+ $ this ->eavEntityMock ->expects ($ this ->any ())
131
131
->method ('getAttributeCollection ' )
132
132
->willReturn ([]);
133
133
134
- $ this ->eavConfig ->expects ($ this ->once ())
134
+ $ this ->eavConfig ->expects ($ this ->any ())
135
135
->method ('getEntityType ' )
136
136
->with ('catalog_category ' )
137
137
->willReturn ($ this ->eavEntityMock );
@@ -199,11 +199,11 @@ public function testGetDataNoFileExists()
199
199
['' , null , $ categoryData ],
200
200
['image ' , null , $ categoryData ['image ' ]],
201
201
]);
202
- $ categoryMock ->expects ($ this ->once ())
202
+ $ categoryMock ->expects ($ this ->any ())
203
203
->method ('getExistsStoreValueFlag ' )
204
204
->with ('url_key ' )
205
205
->willReturn (false );
206
- $ categoryMock ->expects ($ this ->once ())
206
+ $ categoryMock ->expects ($ this ->any ())
207
207
->method ('getStoreId ' )
208
208
->willReturn (\Magento \Store \Model \Store::DEFAULT_STORE_ID );
209
209
$ categoryMock ->expects ($ this ->once ())
@@ -273,11 +273,11 @@ public function testGetData()
273
273
['' , null , $ categoryData ],
274
274
['image ' , null , $ categoryData ['image ' ]],
275
275
]);
276
- $ categoryMock ->expects ($ this ->once ())
276
+ $ categoryMock ->expects ($ this ->any ())
277
277
->method ('getExistsStoreValueFlag ' )
278
278
->with ('url_key ' )
279
279
->willReturn (false );
280
- $ categoryMock ->expects ($ this ->once ())
280
+ $ categoryMock ->expects ($ this ->any ())
281
281
->method ('getStoreId ' )
282
282
->willReturn (\Magento \Store \Model \Store::DEFAULT_STORE_ID );
283
283
$ categoryMock ->expects ($ this ->once ())
0 commit comments