Skip to content

Commit

Permalink
magento#24463: fix RefreshSpecialPricesTest errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mozok committed Aug 1, 2022
1 parent 2e45de7 commit 3a85643
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3a85643

Please sign in to comment.