Skip to content

Commit ad14a28

Browse files
Indrani SonawaneIndrani Sonawane
Indrani Sonawane
authored and
Indrani Sonawane
committed
Fixed the static test failures
1 parent 9f17b1e commit ad14a28

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/VaultGraphQl/Model/Resolver/PaymentTokens.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PaymentTokens implements ResolverInterface
2424
/**
2525
* Cart types
2626
*/
27-
const BASE_CART_TYPES = [
27+
private const BASE_CART_TYPES = [
2828
'VI' => 'Visa',
2929
'MC' => 'MasterCard',
3030
'AE' => 'American Express',
@@ -98,7 +98,7 @@ public function resolve(
9898
*/
9999
private function getCartDetailsInformation(?string $tokenDetails): ?string
100100
{
101-
if (is_null($tokenDetails)) {
101+
if ($tokenDetails === null) {
102102
return $tokenDetails;
103103
}
104104

dev/tests/api-functional/testsuite/Magento/GraphQl/Vault/CustomerPaymentTokensTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ public function testDeletePaymentTokenIfUserIsNotAuthorized()
190190
public function testDeletePaymentTokenInvalidPublicHash()
191191
{
192192
$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');
194195

195196
$currentEmail = 'customer@example.com';
196197
$currentPassword = 'password';

0 commit comments

Comments
 (0)