Skip to content

Commit beb5662

Browse files
author
valdislav
committed
MAGETWO-35638: Pull request processing
1 parent 0857bad commit beb5662

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public function testLoadWithFilter()
8383
$constructArgs['resource'] = $resourceMock;
8484
$productResourceMock = $this->getMock('\Magento\Catalog\Model\Resource\Product\Collection', [], [], '', false);
8585
$constructArgs['productResource'] = $productResourceMock;
86+
$orderResourceMock = $this->getMock('\Magento\Sales\Model\Resource\Order\Collection', [], [], '', false);
87+
$constructArgs['orderResource'] = $orderResourceMock;
8688

8789
$collection = $this->getMock(
8890
'Magento\Reports\Model\Resource\Quote\Collection',
@@ -98,7 +100,7 @@ public function testLoadWithFilter()
98100
'_initSelect',
99101
'getTable',
100102
'getItems',
101-
'getOrdersSubSelect',
103+
'getOrdersData',
102104
],
103105
$constructArgs
104106
);
@@ -138,8 +140,7 @@ public function testLoadWithFilter()
138140
$this->selectMock->expects($this->once())->method('from')->willReturnSelf();
139141
$this->selectMock->expects($this->once())->method('useStraightJoin')->willReturnSelf();
140142
$this->selectMock->expects($this->exactly(2))->method('joinInner')->willReturnSelf();
141-
$this->selectMock->expects($this->once())->method('joinLeft')->willReturnSelf();
142-
$this->selectMock->expects($this->once())->method('columns')->willReturnSelf();
143+
$collection->expects($this->once())->method('getOrdersData')->willReturn([]);
143144

144145
$productAttributeMock->expects($this->once())->method('getBackend')->willReturnSelf();
145146
$priceAttributeMock->expects($this->once())->method('getBackend')->willReturnSelf();

0 commit comments

Comments
 (0)