@@ -276,10 +276,10 @@ public function testModifyData()
276
276
$ this ->productMock ->expects ($ this ->any ())
277
277
->method ('getId ' )
278
278
->willReturn (1 );
279
- $ this ->productMock ->expects ($ this ->any ())
279
+ $ this ->productMock ->expects ($ this ->once ())
280
280
->method ('getAttributeSetId ' )
281
281
->willReturn (4 );
282
- $ this ->productMock ->expects ($ this ->any ())
282
+ $ this ->productMock ->expects ($ this ->once ())
283
283
->method ('getData ' )
284
284
->with (ProductAttributeInterface::CODE_PRICE )->willReturn ('19.9900 ' );
285
285
@@ -292,47 +292,47 @@ public function testModifyData()
292
292
$ this ->attributeGroupRepositoryMock ->expects ($ this ->any ())
293
293
->method ('getList ' )
294
294
->willReturn ($ this ->searchCriteriaMock );
295
- $ this ->searchCriteriaMock ->expects ($ this ->any ())
295
+ $ this ->searchCriteriaMock ->expects ($ this ->once ())
296
296
->method ('getItems ' )
297
297
->willReturn ([$ this ->attributeGroupMock ]);
298
- $ this ->sortOrderBuilderMock ->expects ($ this ->any ())
298
+ $ this ->sortOrderBuilderMock ->expects ($ this ->once ())
299
299
->method ('setField ' )
300
300
->willReturnSelf ();
301
- $ this ->sortOrderBuilderMock ->expects ($ this ->any ())
301
+ $ this ->sortOrderBuilderMock ->expects ($ this ->once ())
302
302
->method ('setAscendingDirection ' )
303
303
->willReturnSelf ();
304
304
$ dataObjectMock = $ this ->getMock ('\Magento\Framework\Api\AbstractSimpleObject ' , [], [], '' , false );
305
- $ this ->sortOrderBuilderMock ->expects ($ this ->any ())
305
+ $ this ->sortOrderBuilderMock ->expects ($ this ->once ())
306
306
->method ('create ' )
307
307
->willReturn ($ dataObjectMock );
308
308
309
309
$ this ->searchCriteriaBuilderMock ->expects ($ this ->any ())
310
310
->method ('addFilter ' )
311
311
->willReturnSelf ();
312
- $ this ->searchCriteriaBuilderMock ->expects ($ this ->any ())
312
+ $ this ->searchCriteriaBuilderMock ->expects ($ this ->once ())
313
313
->method ('addSortOrder ' )
314
314
->willReturnSelf ();
315
315
$ this ->searchCriteriaBuilderMock ->expects ($ this ->any ())
316
316
->method ('create ' )
317
317
->willReturn ($ this ->searchCriteriaMock );
318
318
319
- $ this ->attributeRepositoryMock ->expects ($ this ->any ())
319
+ $ this ->attributeRepositoryMock ->expects ($ this ->once ())
320
320
->method ('getList ' )
321
321
->with ($ this ->searchCriteriaMock )
322
322
->willReturn ($ this ->searchResultsMock );
323
323
$ this ->eavAttributeMock ->expects ($ this ->any ())
324
324
->method ('getAttributeGroupCode ' )
325
325
->willReturn ('product-details ' );
326
- $ this ->eavAttributeMock ->expects ($ this ->any ())
326
+ $ this ->eavAttributeMock ->expects ($ this ->once ())
327
327
->method ('getApplyTo ' )
328
328
->willReturn ([]);
329
- $ this ->eavAttributeMock ->expects ($ this ->any ())
329
+ $ this ->eavAttributeMock ->expects ($ this ->once ())
330
330
->method ('getFrontendInput ' )
331
331
->willReturn (ProductAttributeInterface::CODE_PRICE );
332
332
$ this ->eavAttributeMock ->expects ($ this ->any ())
333
333
->method ('getAttributeCode ' )
334
334
->willReturn (ProductAttributeInterface::CODE_PRICE );
335
- $ this ->searchResultsMock ->expects ($ this ->any ())
335
+ $ this ->searchResultsMock ->expects ($ this ->once ())
336
336
->method ('getItems ' )
337
337
->willReturn ([$ this ->eavAttributeMock ]);
338
338
0 commit comments