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')