Skip to content

Commit 7f61b6f

Browse files
author
Valeriy Nayda
committed
GraphQl-222: Apply changes from CR for PR 162
- Fix API-functional tests
1 parent 010220c commit 7f61b6f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function testUpdateAccountInformationIfCustomerIsLocked()
238238
/**
239239
* @magentoApiDataFixture Magento/Customer/_files/customer.php
240240
* @expectedException \Exception
241-
* @expectedExceptionMessage For changing "email" you should provide current "password".
241+
* @expectedExceptionMessage Provide the current "password" to change "email".
242242
*/
243243
public function testUpdateEmailIfPasswordIsMissed()
244244
{

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public function testRevokeCustomerTokenValidCredentials()
2323
{
2424
$query = <<<QUERY
2525
mutation {
26-
revokeCustomerToken
26+
revokeCustomerToken {
27+
result
28+
}
2729
}
2830
QUERY;
2931

@@ -35,7 +37,7 @@ public function testRevokeCustomerTokenValidCredentials()
3537

3638
$headerMap = ['Authorization' => 'Bearer ' . $customerToken];
3739
$response = $this->graphQlQuery($query, [], '', $headerMap);
38-
$this->assertTrue($response['revokeCustomerToken']);
40+
$this->assertTrue($response['revokeCustomerToken']['result']);
3941
}
4042

4143
/**
@@ -46,7 +48,9 @@ public function testRevokeCustomerTokenForGuestCustomer()
4648
{
4749
$query = <<<QUERY
4850
mutation {
49-
revokeCustomerToken
51+
revokeCustomerToken {
52+
result
53+
}
5054
}
5155
QUERY;
5256
$this->graphQlQuery($query, [], '');

0 commit comments

Comments
 (0)