Skip to content

Commit d317ce8

Browse files
committed
ACP2E-3189: fix static test
1 parent 15c341a commit d317ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Report/BestsellersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testAggregatePerStoreCalculationWithInterval(): void
139139
->willReturn($periodExpr);
140140
$connection->expects($this->any())->method('select')->willReturn($select);
141141
$query = $this->createMock(\Zend_Db_Statement_Interface::class);
142-
$connection->expects($this->exactly(4))->method('query')->willReturn($query);
142+
$connection->expects($this->exactly(5))->method('query')->willReturn($query);
143143
$resource = $this->createMock(ResourceConnection::class);
144144
$resource->expects($this->any())
145145
->method('getConnection')
@@ -223,7 +223,7 @@ public function testClearByDateRange()
223223
$connection->expects($this->atLeastOnce())->method('query')->willReturn($query);
224224
$connection->expects($this->atLeastOnce())->method('getDatePartSql')->willReturn($periodExpr);
225225

226-
$connection->expects($this->exactly(2))->method('delete');
226+
$connection->expects($this->once())->method('delete');
227227

228228
$this->report = new Bestsellers(
229229
$this->context,

0 commit comments

Comments
 (0)