| @@ 105-117 (lines=13) @@ | ||
| 102 | $this->assertTrue($merchantData->getIsOk()); |
|
| 103 | } |
|
| 104 | ||
| 105 | public function testVerifyRequestIPN() |
|
| 106 | { |
|
| 107 | $_POST = [ |
|
| 108 | 'business' => '[email protected]', |
|
| 109 | 'order_id' => 2, |
|
| 110 | 'total_amount' => 500000, |
|
| 111 | 'checksum' => 'c96f01e3fdb4ba665304e70c04d58ba8917f31fe', |
|
| 112 | 'merchant_id' => 647, |
|
| 113 | 'url_success' => '/' |
|
| 114 | ]; |
|
| 115 | $responseData = $this->gateway->verifyRequestIPN(); |
|
| 116 | $this->assertFalse($responseData); |
|
| 117 | } |
|
| 118 | ||
| 119 | public function testVerifyRequestPurchaseSuccess() |
|
| 120 | { |
|
| @@ 119-131 (lines=13) @@ | ||
| 116 | $this->assertFalse($responseData); |
|
| 117 | } |
|
| 118 | ||
| 119 | public function testVerifyRequestPurchaseSuccess() |
|
| 120 | { |
|
| 121 | $_GET = [ |
|
| 122 | 'business' => '[email protected]', |
|
| 123 | 'order_id' => 2, |
|
| 124 | 'total_amount' => 500000, |
|
| 125 | 'checksum' => 'c96f01e3fdb4ba665304e70c04d58ba8917f31fe', |
|
| 126 | 'merchant_id' => 647, |
|
| 127 | 'url_success' => '/' |
|
| 128 | ]; |
|
| 129 | $responseData = $this->gateway->verifyRequestPurchaseSuccess(); |
|
| 130 | $this->assertFalse($responseData); |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||