File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/CatalogRule/Test/Unit/Model/Indexer Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public function testGetProducts()
87
87
->method ('getList ' )
88
88
->with ($ this ->searchCriteria )
89
89
->willReturn ($ this ->productSearchResultsInterface );
90
- $ iterator = new \ ArrayIterator ( [$ this ->product ]) ;
90
+ $ iterator = [$ this ->product ];
91
91
$ this ->productSearchResultsInterface ->expects ($ this ->once ())
92
92
->method ('getItems ' )
93
93
->willReturn ($ iterator );
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ public function testUpdateCatalogRuleGroupWebsiteData()
255
255
->method ('getBackend ' )
256
256
->will ($ this ->returnValue ($ backendModelMock ));
257
257
258
- $ iterator = new \ ArrayIterator ( [$ this ->product ]) ;
258
+ $ iterator = [$ this ->product ];
259
259
$ this ->productLoader ->expects ($ this ->once ())
260
260
->method ('getProducts ' )
261
261
->willReturn ($ iterator );
You can’t perform that action at this time.
0 commit comments