File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/Reports/Test/Unit/Model/ResourceModel/Quote Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ public function testResolveCustomerNames()
110
110
$ customerName = "CONCAT_WS('firstname', 'lastname') " ;
111
111
$ customerTableName = 'customer_entity ' ;
112
112
$ customerId = ['customer_id ' => ['test_id ' ]];
113
- $ customersData = [['item_1 ' ]];
113
+ $ customersData = [['entity_id ' => ' test_id ' , ' name ' => ' item_1 ' ]];
114
114
$ itemData = ['test ' ];
115
115
116
116
$ this ->selectMock ->expects ($ this ->any ())
117
117
->method ('getConnection ' )
118
118
->willReturn ($ this ->connectionMock );
119
119
$ this ->selectMock ->expects ($ this ->once ())
120
120
->method ('from ' )
121
- ->with (['customer ' => $ customerTableName ], ['email ' ])
121
+ ->with (['customer ' => $ customerTableName ], ['entity_id ' , ' email ' ])
122
122
->willReturnSelf ();
123
123
$ this ->selectMock ->expects ($ this ->once ())
124
124
->method ('columns ' )
@@ -158,9 +158,6 @@ public function testResolveCustomerNames()
158
158
$ itemMock = $ this ->getMockBuilder ('Magento\Framework\Model\AbstractModel ' )
159
159
->disableOriginalConstructor ()
160
160
->getMock ();
161
- $ itemMock ->expects ($ this ->once ())
162
- ->method ('getData ' )
163
- ->willReturn ($ itemData );
164
161
165
162
$ this ->entityFactoryMock ->expects ($ this ->any ())
166
163
->method ('create ' )
You can’t perform that action at this time.
0 commit comments