Skip to content

Commit 423ff9e

Browse files
committed
MAGETWO-48527: [GITHUB] Wrong customer id in Abandoned Carts grid #3162
1 parent de942b8 commit 423ff9e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ public function testResolveCustomerNames()
110110
$customerName = "CONCAT_WS('firstname', 'lastname')";
111111
$customerTableName = 'customer_entity';
112112
$customerId = ['customer_id' => ['test_id']];
113-
$customersData = [['item_1']];
113+
$customersData = [['entity_id' => 'test_id', 'name' => 'item_1']];
114114
$itemData = ['test'];
115115

116116
$this->selectMock->expects($this->any())
117117
->method('getConnection')
118118
->willReturn($this->connectionMock);
119119
$this->selectMock->expects($this->once())
120120
->method('from')
121-
->with(['customer' => $customerTableName], ['email'])
121+
->with(['customer' => $customerTableName], ['entity_id', 'email'])
122122
->willReturnSelf();
123123
$this->selectMock->expects($this->once())
124124
->method('columns')
@@ -158,9 +158,6 @@ public function testResolveCustomerNames()
158158
$itemMock = $this->getMockBuilder('Magento\Framework\Model\AbstractModel')
159159
->disableOriginalConstructor()
160160
->getMock();
161-
$itemMock->expects($this->once())
162-
->method('getData')
163-
->willReturn($itemData);
164161

165162
$this->entityFactoryMock->expects($this->any())
166163
->method('create')

0 commit comments

Comments
 (0)