Skip to content

Commit

Permalink
Added few new assertions on to SaveCartDataWithPayflowProTest
Browse files Browse the repository at this point in the history
  • Loading branch information
avattam06 committed Jul 31, 2020
1 parent 47d7be2 commit 3c9406d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function testPlaceOrderAndSaveDataForFuturePayflowPro(): void
$responseData = $this->placeOrderPayflowPro('is_active_payment_token_enabler: true');
$this->assertArrayHasKey('data', $responseData);
$this->assertArrayHasKey('createPayflowProToken', $responseData['data']);
$this->assertNotEmpty($this->getVaultCartData()->getPublicHash());
$this->assertNotEmpty($this->getVaultCartData()->getTokenDetails());
$this->assertNotEmpty($this->getVaultCartData()->getGatewayToken());
$this->assertNotEmpty($this->getVaultCartData()->getPublicHash());

This comment has been minimized.

Copy link
@dthampy

dthampy Aug 3, 2020

Contributor

The assertion is duplicated here

This comment has been minimized.

Copy link
@avattam06

avattam06 Aug 3, 2020

Author Contributor

I will remove the line 69.

$this->assertTrue($this->getVaultCartData()->getIsActive());
$this->assertTrue($this->getVaultCartData()->getIsVisible());
}
Expand All @@ -87,6 +91,10 @@ public function testPlaceOrderAndNotSaveDataForFuturePayflowPro(): void
$responseData = $this->placeOrderPayflowPro('is_active_payment_token_enabler: false');
$this->assertArrayHasKey('data', $responseData);
$this->assertArrayHasKey('createPayflowProToken', $responseData['data']);
$this->assertNotEmpty($this->getVaultCartData()->getPublicHash());
$this->assertNotEmpty($this->getVaultCartData()->getTokenDetails());
$this->assertNotEmpty($this->getVaultCartData()->getGatewayToken());
$this->assertNotEmpty($this->getVaultCartData()->getPublicHash());

This comment has been minimized.

Copy link
@dthampy

dthampy Aug 3, 2020

Contributor

Does the vault still have the tokenDetails even after the vault_enabler is set to 0
(or disabled)?

$this->assertTrue($this->getVaultCartData()->getIsActive());
$this->assertFalse($this->getVaultCartData()->getIsVisible());
}
Expand Down

0 comments on commit 3c9406d

Please sign in to comment.