File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Customer Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -135,16 +135,31 @@ public function testGetCustomerIfAccountIsLocked()
135
135
* @magentoApiDataFixture Magento/Customer/_files/customer_confirmation_config_enable.php
136
136
* @magentoApiDataFixture Magento/Customer/_files/customer.php
137
137
* @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.
139
139
*/
140
140
public function testAccountIsNotConfirmed ()
141
141
{
142
142
$ confirmation_required = $ this ->accountManagement ::ACCOUNT_CONFIRMATION_REQUIRED ;
143
143
$ customerEmail = 'customer@example.com ' ;
144
144
$ currentPassword = 'password ' ;
145
+ $ headersMap = $ this ->getCustomerAuthHeaders ($ customerEmail , $ currentPassword );
145
146
$ customer = $ this ->customerRepository ->getById (1 )->setConfirmation ($ confirmation_required );
146
147
$ 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
+ );
148
163
}
149
164
150
165
/**
You can’t perform that action at this time.
0 commit comments