Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Corrections after mistake.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomash Khamlai <tomash.khamlai@gmail.com>
  • Loading branch information
TomashKhamlai committed Oct 9, 2019
1 parent 95f2c64 commit b52c14e
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,31 @@ public function testGetCustomerIfAccountIsLocked()
* @magentoApiDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
* @magentoApiDataFixture Magento/Customer/_files/customer.php
* @expectedException \Exception
* @expectedExceptionMessage The account sign-in was incorrect or your account is disabled temporarily
* @expectedExceptionMessage This account isn't confirmed. Verify and try again.
*/
public function testAccountIsNotConfirmed()
{
$confirmation_required = $this->accountManagement::ACCOUNT_CONFIRMATION_REQUIRED;
$customerEmail = 'customer@example.com';
$currentPassword = 'password';
$headersMap = $this->getCustomerAuthHeaders($customerEmail, $currentPassword);
$customer = $this->customerRepository->getById(1)->setConfirmation($confirmation_required);
$this->customerRepository->save($customer);
$this->getCustomerAuthHeaders($customerEmail, $currentPassword);
$query = <<<QUERY
query {
customer {
firstname
lastname
email
}
}
QUERY;
$this->graphQlQuery(
$query,
[],
'',
$headersMap
);
}

/**
Expand Down

0 comments on commit b52c14e

Please sign in to comment.