| @@ 89-97 (lines=9) @@ | ||
| 86 | * @expectedException \yii\base\InvalidConfigException |
|
| 87 | * @expectedExceptionMessage cannot be blank |
|
| 88 | */ |
|
| 89 | public function testQueryDR() |
|
| 90 | { |
|
| 91 | // Valid |
|
| 92 | $responseData = $this->gateway->queryDR(['transaction_id' => 1]); |
|
| 93 | $this->assertTrue($responseData->getIsOk()); |
|
| 94 | ||
| 95 | // Throws |
|
| 96 | $this->gateway->queryDR([]); |
|
| 97 | } |
|
| 98 | ||
| 99 | public function testGetMerchantData() |
|
| 100 | { |
|
| @@ 90-101 (lines=12) @@ | ||
| 87 | * @expectedException \yii\base\InvalidConfigException |
|
| 88 | * @expectedExceptionMessage cannot be blank |
|
| 89 | */ |
|
| 90 | public function testQueryDR() |
|
| 91 | { |
|
| 92 | // Valid |
|
| 93 | $responseData = $this->gateway->queryDR([ |
|
| 94 | 'MerchTxnRef' => 1 |
|
| 95 | ]); |
|
| 96 | ||
| 97 | $this->assertTrue($responseData->getIsOk()); |
|
| 98 | ||
| 99 | // Throws |
|
| 100 | $this->gateway->queryDR([]); |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * @expectedException \yii\base\InvalidConfigException |
|
| @@ 107-119 (lines=13) @@ | ||
| 104 | * @expectedException \yii\base\InvalidConfigException |
|
| 105 | * @expectedExceptionMessage cannot be blank |
|
| 106 | */ |
|
| 107 | public function testQueryDRInternational() |
|
| 108 | { |
|
| 109 | // Valid |
|
| 110 | $this->gateway->international = true; |
|
| 111 | $responseData = $this->gateway->queryDR([ |
|
| 112 | 'MerchTxnRef' => 1 |
|
| 113 | ]); |
|
| 114 | ||
| 115 | $this->assertTrue($responseData->getIsOk()); |
|
| 116 | ||
| 117 | // Throws |
|
| 118 | $this->gateway->queryDR([]); |
|
| 119 | } |
|
| 120 | ||
| 121 | public function testVerifyRequestPurchaseSuccess() |
|
| 122 | { |
|