From b13fcbb5e6f30d5952267ca64d2006b9c62a6cbc Mon Sep 17 00:00:00 2001 From: Robert Szeker Date: Sun, 7 Mar 2021 15:36:06 +0000 Subject: [PATCH] Update unit test of Block/Product/ListProduct modify return value of GetIteration on catCollectionMock --- .../Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php b/app/code/Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php index d1b01db75927c..f3a9d0089be9a 100644 --- a/app/code/Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Block/Product/ListProductTest.php @@ -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')