Skip to content

Commit

Permalink
Update unit test of Block/Product/ListProduct
Browse files Browse the repository at this point in the history
modify return value of GetIteration on catCollectionMock
  • Loading branch information
mamsincl authored Mar 7, 2021
1 parent e5b3bb3 commit b13fcbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function testGetIdentities()

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

$this->prodCollectionMock->expects($this->any())
->method('getIterator')
Expand Down

0 comments on commit b13fcbb

Please sign in to comment.