Skip to content

Commit b52c14e

Browse files
committed
Corrections after mistake.
Signed-off-by: Tomash Khamlai <tomash.khamlai@gmail.com>
1 parent 95f2c64 commit b52c14e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,31 @@ public function testGetCustomerIfAccountIsLocked()
135135
* @magentoApiDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
136136
* @magentoApiDataFixture Magento/Customer/_files/customer.php
137137
* @expectedException \Exception
138-
* @expectedExceptionMessage The account sign-in was incorrect or your account is disabled temporarily
138+
* @expectedExceptionMessage This account isn't confirmed. Verify and try again.
139139
*/
140140
public function testAccountIsNotConfirmed()
141141
{
142142
$confirmation_required = $this->accountManagement::ACCOUNT_CONFIRMATION_REQUIRED;
143143
$customerEmail = 'customer@example.com';
144144
$currentPassword = 'password';
145+
$headersMap = $this->getCustomerAuthHeaders($customerEmail, $currentPassword);
145146
$customer = $this->customerRepository->getById(1)->setConfirmation($confirmation_required);
146147
$this->customerRepository->save($customer);
147-
$this->getCustomerAuthHeaders($customerEmail, $currentPassword);
148+
$query = <<<QUERY
149+
query {
150+
customer {
151+
firstname
152+
lastname
153+
email
154+
}
155+
}
156+
QUERY;
157+
$this->graphQlQuery(
158+
$query,
159+
[],
160+
'',
161+
$headersMap
162+
);
148163
}
149164

150165
/**

0 commit comments

Comments
 (0)