File tree 2 files changed +4
-3
lines changed
app/code/Magento/VaultGraphQl/Model/Resolver
dev/tests/api-functional/testsuite/Magento/GraphQl/Vault
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class PaymentTokens implements ResolverInterface
24
24
/**
25
25
* Cart types
26
26
*/
27
- const BASE_CART_TYPES = [
27
+ private const BASE_CART_TYPES = [
28
28
'VI ' => 'Visa ' ,
29
29
'MC ' => 'MasterCard ' ,
30
30
'AE ' => 'American Express ' ,
@@ -98,7 +98,7 @@ public function resolve(
98
98
*/
99
99
private function getCartDetailsInformation (?string $ tokenDetails ): ?string
100
100
{
101
- if (is_null ( $ tokenDetails) ) {
101
+ if ($ tokenDetails === null ) {
102
102
return $ tokenDetails ;
103
103
}
104
104
Original file line number Diff line number Diff line change @@ -190,7 +190,8 @@ public function testDeletePaymentTokenIfUserIsNotAuthorized()
190
190
public function testDeletePaymentTokenInvalidPublicHash ()
191
191
{
192
192
$ this ->expectException (\Exception::class);
193
- $ this ->expectExceptionMessage ('GraphQL response contains errors: Could not find a token using public hash: ksdfk392ks ' );
193
+ $ this ->expectExceptionMessage ('GraphQL response contains errors:
194
+ Could not find a token using public hash: ksdfk392ks ' );
194
195
195
196
$ currentEmail = 'customer@example.com ' ;
196
197
$ currentPassword = 'password ' ;
You can’t perform that action at this time.
0 commit comments