Skip to content

Commit b13fcbb

Browse files
authored
Update unit test of Block/Product/ListProduct
modify return value of GetIteration on catCollectionMock
1 parent e5b3bb3 commit b13fcbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function testGetIdentities()
195195

196196
$this->catCollectionMock->expects($this->once())
197197
->method('getIterator')
198-
->willReturn([$currentCategory]);
198+
->willReturn(new \ArrayIterator([$currentCategory]));
199199

200200
$this->prodCollectionMock->expects($this->any())
201201
->method('getIterator')

0 commit comments

Comments
 (0)