diff --git a/app/code/Magento/Reports/Test/Unit/Block/Product/ComparedTest.php b/app/code/Magento/Reports/Test/Unit/Block/Product/ComparedTest.php index e8913e4adb38f..f7030b8a731e7 100644 --- a/app/code/Magento/Reports/Test/Unit/Block/Product/ComparedTest.php +++ b/app/code/Magento/Reports/Test/Unit/Block/Product/ComparedTest.php @@ -27,10 +27,12 @@ protected function setUp() $contextMock = $this->getMockBuilder(\Magento\Catalog\Block\Product\Context::class) ->disableOriginalConstructor() ->getMock(); + $visibilityMock = $this->getMockBuilder(\Magento\Catalog\Model\Product\Visibility::class) ->disableOriginalConstructor() ->getMock(); - $this->factoryMock = $this->getMockBuilder(\Magento\Reports\Model\Product\Index\Factory::class) + + $this->factoryMock = $this->getMockBuilder(Factory::class) ->disableOriginalConstructor() ->setMethods(['get']) ->getMock(); @@ -56,8 +58,8 @@ public function testGetModelException() public function testGetModel() { $indexMock = $this->getMockBuilder(\Magento\Reports\Model\Product\Index\AbstractIndex::class) - ->disableOriginalConstructor() - ->getMock(); + ->disableOriginalConstructor() + ->getMock(); $this->factoryMock->expects($this->once())->method('get')->willReturn($indexMock); diff --git a/dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Product/Lowstock/CollectionTest.php b/dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Product/Lowstock/CollectionTest.php index aa8d6c2bd65bd..65a0512b9cf55 100644 --- a/dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Product/Lowstock/CollectionTest.php +++ b/dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Product/Lowstock/CollectionTest.php @@ -43,7 +43,7 @@ public function testFilterByProductTypeException() public function testFilterByProductTypeString() { $this->collection->filterByProductType('simple'); - $whereParts = $this->collection->getSelect()->getPart(\Zend_Db_Select::WHERE); + $whereParts = $this->collection->getSelect()->getPart(\Magento\Framework\DB\Select::WHERE); $this->assertContains('simple', $whereParts[0]); } @@ -55,7 +55,7 @@ public function testFilterByProductTypeString() public function testFilterByProductTypeArray() { $this->collection->filterByProductType(['simple', 'configurable']); - $whereParts = $this->collection->getSelect()->getPart(\Zend_Db_Select::WHERE); + $whereParts = $this->collection->getSelect()->getPart(\Magento\Framework\DB\Select::WHERE); $this->assertThat( $whereParts[0],