File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
app/code/Magento/Customer/etc
dev/tests/api-functional/testsuite/Magento/Customer/Api Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 141
141
</resources >
142
142
<data >
143
143
<parameter name =" customer.id" force =" true" >%customer_id%</parameter >
144
+ <parameter name =" customer.group_id" force =" true" >null</parameter >
144
145
</data >
145
146
</route >
146
147
<route url =" /V1/customers/me" method =" GET" soapOperation =" getSelf" >
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ public function testUpdateCustomer()
268
268
$ customerData = $ this ->_createCustomer ();
269
269
$ existingCustomerDataObject = $ this ->_getCustomerData ($ customerData [Customer::ID ]);
270
270
$ lastName = $ existingCustomerDataObject ->getLastname ();
271
+ $ expectedGroupID = $ existingCustomerDataObject ->getGroupId ();
271
272
$ customerData [Customer::LASTNAME ] = $ lastName . 'Updated ' ;
272
273
$ newCustomerDataObject = $ this ->customerDataFactory ->create ();
273
274
$ this ->dataObjectHelper ->populateWithArray (
@@ -296,8 +297,12 @@ public function testUpdateCustomer()
296
297
$ this ->assertTrue ($ response !== null );
297
298
298
299
//Verify if the customer is updated
299
- $ existingCustomerDataObject = $ this ->_getCustomerData ($ customerData [Customer::ID ]);
300
- $ this ->assertEquals ($ lastName . "Updated " , $ existingCustomerDataObject ->getLastname ());
300
+ $ updatedCustomerDataObject = $ this ->_getCustomerData ($ customerData [Customer::ID ]);
301
+ $ this ->assertEquals (
302
+ $ updatedCustomerDataObject ->getGroupId (),
303
+ $ expectedGroupID
304
+ );
305
+ $ this ->assertEquals ($ lastName . "Updated " , $ updatedCustomerDataObject ->getLastname ());
301
306
}
302
307
303
308
/**
You can’t perform that action at this time.
0 commit comments