Skip to content

Commit 3641627

Browse files
committed
magento#271: [My Account] API functional tests fix
1 parent 48f1891 commit 3641627

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CreateCustomerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testCreateCustomerIfInputDataIsEmpty()
139139

140140
/**
141141
* @expectedException \Exception
142-
* @expectedExceptionMessage The customer email is missing. Enter and try again.
142+
* @expectedExceptionMessage Required parameters are missing: Email
143143
*/
144144
public function testCreateCustomerIfEmailMissed()
145145
{
@@ -243,7 +243,7 @@ public function testCreateCustomerIfPassedAttributeDosNotExistsInCustomerInput()
243243

244244
/**
245245
* @expectedException \Exception
246-
* @expectedExceptionMessage Required parameters are missing: firstname
246+
* @expectedExceptionMessage Required parameters are missing: First Name
247247
*/
248248
public function testCreateCustomerIfNameEmpty()
249249
{

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/UpdateCustomerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,17 @@ public function testUpdateEmailIfEmailAlreadyExists()
253253
$currentEmail = '[email protected]';
254254
$currentPassword = 'password';
255255
$existedEmail = '[email protected]';
256+
$firstname = 'Richard';
257+
$lastname = 'Rowe';
256258

257259
$query = <<<QUERY
258260
mutation {
259261
updateCustomer(
260262
input: {
261263
email: "{$existedEmail}"
262264
password: "{$currentPassword}"
265+
firstname: "{$firstname}"
266+
lastname: "{$lastname}"
263267
}
264268
) {
265269
customer {
@@ -274,7 +278,7 @@ public function testUpdateEmailIfEmailAlreadyExists()
274278
/**
275279
* @magentoApiDataFixture Magento/Customer/_files/customer.php
276280
* @expectedException \Exception
277-
* @expectedExceptionMessage Required parameters are missing: firstname
281+
* @expectedExceptionMessage Required parameters are missing: First Name
278282
*/
279283
public function testEmptyCustomerName()
280284
{

0 commit comments

Comments
 (0)