File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Report Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function testAggregatePerStoreCalculationWithInterval(): void
139
139
->willReturn ($ periodExpr );
140
140
$ connection ->expects ($ this ->any ())->method ('select ' )->willReturn ($ select );
141
141
$ 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 );
143
143
$ resource = $ this ->createMock (ResourceConnection::class);
144
144
$ resource ->expects ($ this ->any ())
145
145
->method ('getConnection ' )
@@ -223,7 +223,7 @@ public function testClearByDateRange()
223
223
$ connection ->expects ($ this ->atLeastOnce ())->method ('query ' )->willReturn ($ query );
224
224
$ connection ->expects ($ this ->atLeastOnce ())->method ('getDatePartSql ' )->willReturn ($ periodExpr );
225
225
226
- $ connection ->expects ($ this ->exactly ( 2 ))->method ('delete ' );
226
+ $ connection ->expects ($ this ->once ( ))->method ('delete ' );
227
227
228
228
$ this ->report = new Bestsellers (
229
229
$ this ->context ,
You can’t perform that action at this time.
0 commit comments