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()
165165 $ this ->productCollectionMock ->expects ($ this ->once ())
166166 ->method ('addWebsiteFilter ' )
167167 ->willReturn ($ this ->productCollectionMock );
168- $ iterator = new \ArrayIterator ([$ this ->productMock ]);
168+ $ arrayIteratorMock = new \ArrayIterator ([$ this ->productMock ]);
169169 $ this ->productCollectionMock ->expects ($ this ->once ())
170170 ->method ('getIterator ' )
171- ->willReturn ($ iterator );
171+ ->willReturn ($ arrayIteratorMock );
172172 $ this ->productUrlRewriteGeneratorMock ->expects ($ this ->once ())
173173 ->method ('generate ' )
174174 ->with ($ this ->productMock )
@@ -200,7 +200,6 @@ public function testAfterSaveWithNoStoresAssigned()
200200 $ this ->productCollectionMock ->expects ($ this ->never ())->method ('addCategoryIds ' );
201201 $ this ->productCollectionMock ->expects ($ this ->never ()) ->method ('addAttributeToSelect ' );
202202 $ this ->productCollectionMock ->expects ($ this ->never ())->method ('addWebsiteFilter ' );
203- $ iterator = new \ArrayIterator ([$ this ->productMock ]);
204203 $ this ->productCollectionMock ->expects ($ this ->never ())->method ('getIterator ' );
205204 $ this ->productUrlRewriteGeneratorMock ->expects ($ this ->never ())->method ('generate ' );
206205
You can’t perform that action at this time.
0 commit comments