Skip to content

Commit

Permalink
ENGCOM-4015: [Backport] #12194: Tier price on configurable product so…
Browse files Browse the repository at this point in the history
…rting so… #20642
  • Loading branch information
sidolov authored Feb 4, 2019
2 parents c86a825 + 6635819 commit 12e4ec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ private function getTierPriceSelect(array $productIds)
$this->getLinkField() . ' IN(?)',
$productIds
)->order(
$this->getLinkField()
'qty'
);
return $select;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public function testAddTierPriceDataByGroupId()
[ '(customer_group_id=? AND all_groups=0) OR all_groups=1', $customerGroupId]
)
->willReturnSelf();
$select->expects($this->once())->method('order')->with('entity_id')->willReturnSelf();
$select->expects($this->once())->method('order')->with('qty')->willReturnSelf();
$this->connectionMock->expects($this->once())
->method('fetchAll')
->with($select)
Expand Down Expand Up @@ -370,7 +370,7 @@ public function testAddTierPriceData()
$select->expects($this->exactly(1))->method('where')
->with('entity_id IN(?)', [1])
->willReturnSelf();
$select->expects($this->once())->method('order')->with('entity_id')->willReturnSelf();
$select->expects($this->once())->method('order')->with('qty')->willReturnSelf();
$this->connectionMock->expects($this->once())
->method('fetchAll')
->with($select)
Expand Down

0 comments on commit 12e4ec2

Please sign in to comment.