Skip to content

Commit 093af61

Browse files
committed
Fix static tests.
1 parent d93a9b5 commit 093af61

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

app/code/Magento/Vault/Observer/AfterPaymentSaveObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected function generatePublicHash(PaymentTokenInterface $paymentToken)
113113
/**
114114
* Reads Payment token from Order Payment
115115
*
116-
* @param OrderPaymentExtensionInterface | null $extensionAttributes
116+
* @param OrderPaymentExtensionInterface|null $extensionAttributes
117117
* @return PaymentTokenInterface | null
118118
*/
119119
protected function getPaymentToken(OrderPaymentExtensionInterface $extensionAttributes = null)

app/code/Magento/Vault/Test/Unit/Observer/AfterPaymentSaveObserverTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Vault\Test\Unit\Observer;
78

89
use Magento\Framework\App\DeploymentConfig;
@@ -19,6 +20,9 @@
1920
use Magento\Vault\Observer\AfterPaymentSaveObserver;
2021
use PHPUnit_Framework_MockObject_MockObject as MockObject;
2122

23+
/**
24+
* Tests for AfterPaymentSaveObserver.
25+
*/
2226
class AfterPaymentSaveObserverTest extends \PHPUnit\Framework\TestCase
2327
{
2428
/**
@@ -162,7 +166,10 @@ public function testPositiveCase($customerId, $createdAt, $token, $isActive, $me
162166
static::assertEquals($token, $paymentToken->getGatewayToken());
163167
static::assertEquals($isActive, $paymentToken->getIsActive());
164168
static::assertEquals($createdAt, $paymentToken->getCreatedAt());
165-
static::assertEquals($additionalInfo[VaultConfigProvider::IS_ACTIVE_CODE] ?? false, $paymentToken->getIsVisible());
169+
static::assertEquals(
170+
$additionalInfo[VaultConfigProvider::IS_ACTIVE_CODE] ?? false,
171+
$paymentToken->getIsVisible()
172+
);
166173
}
167174

168175
/**

0 commit comments

Comments
 (0)