Skip to content

Commit

Permalink
Updated encryption test to get merchantId from env
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitvora committed Mar 5, 2018
1 parent 4065d4a commit 274b78d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class BatchRequestEncryptionFunctionalTest extends \PHPUnit_Framework_TestCase
private $password;
private $sftpUsername;
private $sftpPassword;
private $merchantId;

public function setUp()
{
Expand All @@ -25,6 +26,7 @@ public function setUp()
$this->password = $_SERVER['encPassword'];
$this->sftpUsername = $_SERVER['encSftpUsername'];
$this->sftpPassword = $_SERVER['encSftpPassword'];
$this->merchantId = $_SERVER['encMerchantId'];
}

public function test_configuredLitleBatchRequestsManually()
Expand Down Expand Up @@ -52,6 +54,7 @@ public function test_configuredLitleBatchRequestsManually()
$config_hash = array(
'user' => $this->username,
'password' => $this->password,
'merchantId' => $this->merchantId,
'sftp_username' => $this->sftpUsername,
'sftp_password' => $this->sftpPassword,
'useEncryption' => 'true',
Expand Down Expand Up @@ -85,6 +88,7 @@ public function test_mechaBatch()
$config_hash = array(
'user' => $this->username,
'password' => $this->password,
'merchantId' => $this->merchantId,
'sftp_username' => $this->sftpUsername,
'sftp_password' => $this->sftpPassword,
'useEncryption' => 'true',
Expand Down

0 comments on commit 274b78d

Please sign in to comment.