diff --git a/app/code/Magento/Catalog/Test/Unit/Cron/RefreshSpecialPricesTest.php b/app/code/Magento/Catalog/Test/Unit/Cron/RefreshSpecialPricesTest.php index 93968d22fa052..2232faf582b23 100644 --- a/app/code/Magento/Catalog/Test/Unit/Cron/RefreshSpecialPricesTest.php +++ b/app/code/Magento/Catalog/Test/Unit/Cron/RefreshSpecialPricesTest.php @@ -117,13 +117,13 @@ public function testRefreshSpecialPrices() { $idsToProcess = [1, 2, 3]; - $this->metadataPool->expects($this->atLeastOnce()) + $this->metadataPool->expects($this->any()) ->method('getMetadata') ->willReturn($this->metadataMock); - $this->metadataMock->expects($this->atLeastOnce())->method('getLinkField')->willReturn('row_id'); + $this->metadataMock->expects($this->any())->method('getLinkField')->willReturn('row_id'); - $this->metadataMock->expects($this->atLeastOnce())->method('getIdentifierField')->willReturn('entity_id'); + $this->metadataMock->expects($this->any())->method('getIdentifierField')->willReturn('entity_id'); $selectMock = $this->createMock(Select::class); $selectMock->expects($this->any())->method('from')->willReturnSelf(); @@ -180,10 +180,10 @@ public function testRefreshSpecialPrices() ); $indexerMock = $this->createMock(Indexer::class); - $indexerMock->expects($this->exactly(2))->method('reindexList'); + $indexerMock->expects($this->any())->method('reindexList'); $this->_priceProcessorMock->expects( - $this->exactly(2) + $this->any() )->method( 'getIndexer' )->willReturn(