Skip to content

Commit d93a9b5

Browse files
committed
Shorten variable name to make codacy happy
1 parent bbb386b commit d93a9b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ protected function setUp()
123123
* @param string $token
124124
* @param bool $isActive
125125
* @param string $method
126-
* @param array $additionalInformation
126+
* @param array $additionalInfo
127127
* @dataProvider positiveCaseDataProvider
128128
*/
129-
public function testPositiveCase($customerId, $createdAt, $token, $isActive, $method, $additionalInformation)
129+
public function testPositiveCase($customerId, $createdAt, $token, $isActive, $method, $additionalInfo)
130130
{
131131
$this->paymentTokenMock->setGatewayToken($token);
132132
$this->paymentTokenMock->setCustomerId($customerId);
@@ -138,7 +138,7 @@ public function testPositiveCase($customerId, $createdAt, $token, $isActive, $me
138138
->method('getVaultPaymentToken')
139139
->willReturn($this->paymentTokenMock);
140140

141-
$this->salesOrderPaymentMock->method('getAdditionalInformation')->willReturn($additionalInformation);
141+
$this->salesOrderPaymentMock->method('getAdditionalInformation')->willReturn($additionalInfo);
142142

143143
if (!empty($token)) {
144144
$this->paymentTokenManagementMock->expects($this->once())
@@ -162,7 +162,7 @@ public function testPositiveCase($customerId, $createdAt, $token, $isActive, $me
162162
static::assertEquals($token, $paymentToken->getGatewayToken());
163163
static::assertEquals($isActive, $paymentToken->getIsActive());
164164
static::assertEquals($createdAt, $paymentToken->getCreatedAt());
165-
static::assertEquals($additionalInformation[VaultConfigProvider::IS_ACTIVE_CODE] ?? false, $paymentToken->getIsVisible());
165+
static::assertEquals($additionalInfo[VaultConfigProvider::IS_ACTIVE_CODE] ?? false, $paymentToken->getIsVisible());
166166
}
167167

168168
/**

0 commit comments

Comments
 (0)