Skip to content

Commit

Permalink
Shorten variable name to make codacy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pmclain committed Dec 28, 2018
1 parent bbb386b commit d93a9b5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ protected function setUp()
* @param string $token
* @param bool $isActive
* @param string $method
* @param array $additionalInformation
* @param array $additionalInfo
* @dataProvider positiveCaseDataProvider
*/
public function testPositiveCase($customerId, $createdAt, $token, $isActive, $method, $additionalInformation)
public function testPositiveCase($customerId, $createdAt, $token, $isActive, $method, $additionalInfo)
{
$this->paymentTokenMock->setGatewayToken($token);
$this->paymentTokenMock->setCustomerId($customerId);
Expand All @@ -138,7 +138,7 @@ public function testPositiveCase($customerId, $createdAt, $token, $isActive, $me
->method('getVaultPaymentToken')
->willReturn($this->paymentTokenMock);

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

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

/**
Expand Down

0 comments on commit d93a9b5

Please sign in to comment.