File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Category/Plugin/Store Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,10 @@ public function testAfterSave()
165
165
$ this ->productCollectionMock ->expects ($ this ->once ())
166
166
->method ('addWebsiteFilter ' )
167
167
->willReturn ($ this ->productCollectionMock );
168
- $ iterator = new \ArrayIterator ([$ this ->productMock ]);
168
+ $ arrayIteratorMock = new \ArrayIterator ([$ this ->productMock ]);
169
169
$ this ->productCollectionMock ->expects ($ this ->once ())
170
170
->method ('getIterator ' )
171
- ->willReturn ($ iterator );
171
+ ->willReturn ($ arrayIteratorMock );
172
172
$ this ->productUrlRewriteGeneratorMock ->expects ($ this ->once ())
173
173
->method ('generate ' )
174
174
->with ($ this ->productMock )
@@ -200,7 +200,6 @@ public function testAfterSaveWithNoStoresAssigned()
200
200
$ this ->productCollectionMock ->expects ($ this ->never ())->method ('addCategoryIds ' );
201
201
$ this ->productCollectionMock ->expects ($ this ->never ()) ->method ('addAttributeToSelect ' );
202
202
$ this ->productCollectionMock ->expects ($ this ->never ())->method ('addWebsiteFilter ' );
203
- $ iterator = new \ArrayIterator ([$ this ->productMock ]);
204
203
$ this ->productCollectionMock ->expects ($ this ->never ())->method ('getIterator ' );
205
204
$ this ->productUrlRewriteGeneratorMock ->expects ($ this ->never ())->method ('generate ' );
206
205
You can’t perform that action at this time.
0 commit comments