File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
app/code/Magento/Customer/etc
dev/tests/api-functional/testsuite/Magento/Customer/Api Expand file tree Collapse file tree 2 files changed +6
-1
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 16
16
/**
17
17
* Class AccountManagementMeTest
18
18
*
19
+ * Tests involving the customer modifying their user information via web API.
20
+ *
19
21
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20
22
* @magentoApiDataFixture Magento/Customer/_files/customer.php
21
23
* @magentoApiDataFixture Magento/Customer/_files/customer_two_addresses.php
@@ -144,13 +146,14 @@ public function testUpdateCustomer()
144
146
{
145
147
$ customerData = $ this ->_getCustomerData ($ this ->customerData [CustomerInterface::ID ]);
146
148
$ lastName = $ customerData ->getLastname ();
147
-
149
+ $ groupID = $ customerData -> getGroupId ();
148
150
$ updatedCustomerData = $ this ->dataObjectProcessor ->buildOutputDataArray (
149
151
$ customerData ,
150
152
\Magento \Customer \Api \Data \CustomerInterface::class
151
153
);
152
154
$ updatedCustomerData [CustomerInterface::LASTNAME ] = $ lastName . 'Updated ' ;
153
155
$ updatedCustomerData [CustomerInterface::ID ] = 25 ;
156
+ $ updatedCustomerData [CustomerInterface::GROUP_ID ] = $ groupID . 1 ;
154
157
155
158
$ serviceInfo = [
156
159
'rest ' => [
@@ -172,6 +175,7 @@ public function testUpdateCustomer()
172
175
173
176
$ customerData = $ this ->_getCustomerData ($ this ->customerData [CustomerInterface::ID ]);
174
177
$ this ->assertEquals ($ lastName . "Updated " , $ customerData ->getLastname ());
178
+ $ this ->assertEquals ($ groupID , $ customerData ->getGroupId ());
175
179
}
176
180
177
181
public function testGetCustomerData ()
You can’t perform that action at this time.
0 commit comments