Skip to content

Commit

Permalink
magento#271: [My Account] API functional tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
furseyev committed Jun 15, 2019
1 parent 48f1891 commit 3641627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function testCreateCustomerIfInputDataIsEmpty()

/**
* @expectedException \Exception
* @expectedExceptionMessage The customer email is missing. Enter and try again.
* @expectedExceptionMessage Required parameters are missing: Email
*/
public function testCreateCustomerIfEmailMissed()
{
Expand Down Expand Up @@ -243,7 +243,7 @@ public function testCreateCustomerIfPassedAttributeDosNotExistsInCustomerInput()

/**
* @expectedException \Exception
* @expectedExceptionMessage Required parameters are missing: firstname
* @expectedExceptionMessage Required parameters are missing: First Name
*/
public function testCreateCustomerIfNameEmpty()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,17 @@ public function testUpdateEmailIfEmailAlreadyExists()
$currentEmail = 'customer@example.com';
$currentPassword = 'password';
$existedEmail = 'customer_two@example.com';
$firstname = 'Richard';
$lastname = 'Rowe';

$query = <<<QUERY
mutation {
updateCustomer(
input: {
email: "{$existedEmail}"
password: "{$currentPassword}"
firstname: "{$firstname}"
lastname: "{$lastname}"
}
) {
customer {
Expand All @@ -274,7 +278,7 @@ public function testUpdateEmailIfEmailAlreadyExists()
/**
* @magentoApiDataFixture Magento/Customer/_files/customer.php
* @expectedException \Exception
* @expectedExceptionMessage Required parameters are missing: firstname
* @expectedExceptionMessage Required parameters are missing: First Name
*/
public function testEmptyCustomerName()
{
Expand Down

0 comments on commit 3641627

Please sign in to comment.