Skip to content

Commit d8c3e0e

Browse files
authored
Update GroupTest.php
1 parent 66fd676 commit d8c3e0e

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Category/Plugin/Store

1 file changed

+2
-3
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Category/Plugin/Store/GroupTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)