Skip to content

Commit d31e97c

Browse files
committed
ACP2E-2314: Product price is zero in "Products in Carts" report grid, if "Catalog Price Scope" is "Website"
- Added the test coverage.
1 parent 2e103c7 commit d31e97c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Reports/Test/Unit/Model/ResourceModel/Report/Quote/CollectionTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public function testPrepareActiveCartItems()
7979
$collection->expects($this->exactly(2))->method('getSelect')->willReturn($this->selectMock);
8080
$this->selectMock->expects($this->once())->method('reset')->willReturnSelf();
8181
$this->selectMock->expects($this->once())->method('from')->willReturnSelf();
82-
$this->selectMock->expects($this->atLeastOnce())->method('columns')->willReturnSelf();
82+
$this->selectMock->expects($this->exactly(3))->method('columns')
83+
->withConsecutive([
84+
['main_table.product_id', 'main_table.name', 'main_table.price']
85+
])
86+
->willReturnSelf();
8387
$this->selectMock->expects($this->once())->method('joinInner')->willReturnSelf();
8488
$this->selectMock->expects($this->once())->method('where')->willReturnSelf();
8589
$this->selectMock->expects($this->once())->method('group')->willReturnSelf();

0 commit comments

Comments
 (0)