File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Customer Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function testCreateCustomerIfInputDataIsEmpty()
139
139
140
140
/**
141
141
* @expectedException \Exception
142
- * @expectedExceptionMessage The customer email is missing. Enter and try again.
142
+ * @expectedExceptionMessage Required parameters are missing: Email
143
143
*/
144
144
public function testCreateCustomerIfEmailMissed ()
145
145
{
@@ -243,7 +243,7 @@ public function testCreateCustomerIfPassedAttributeDosNotExistsInCustomerInput()
243
243
244
244
/**
245
245
* @expectedException \Exception
246
- * @expectedExceptionMessage Required parameters are missing: firstname
246
+ * @expectedExceptionMessage Required parameters are missing: First Name
247
247
*/
248
248
public function testCreateCustomerIfNameEmpty ()
249
249
{
Original file line number Diff line number Diff line change @@ -253,13 +253,17 @@ public function testUpdateEmailIfEmailAlreadyExists()
253
253
$ currentEmail =
'[email protected] ' ;
254
254
$ currentPassword = 'password ' ;
255
255
$ existedEmail =
'[email protected] ' ;
256
+ $ firstname = 'Richard ' ;
257
+ $ lastname = 'Rowe ' ;
256
258
257
259
$ query = <<<QUERY
258
260
mutation {
259
261
updateCustomer(
260
262
input: {
261
263
email: " {$ existedEmail }"
262
264
password: " {$ currentPassword }"
265
+ firstname: " {$ firstname }"
266
+ lastname: " {$ lastname }"
263
267
}
264
268
) {
265
269
customer {
@@ -274,7 +278,7 @@ public function testUpdateEmailIfEmailAlreadyExists()
274
278
/**
275
279
* @magentoApiDataFixture Magento/Customer/_files/customer.php
276
280
* @expectedException \Exception
277
- * @expectedExceptionMessage Required parameters are missing: firstname
281
+ * @expectedExceptionMessage Required parameters are missing: First Name
278
282
*/
279
283
public function testEmptyCustomerName ()
280
284
{
You can’t perform that action at this time.
0 commit comments