Skip to content

Commit 8247652

Browse files
committed
Added tests for redirect method
1 parent 040a016 commit 8247652

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Message/PurchaseRequestTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public function setUp()
1818
'returnUrl' => 'https://www.foodstore.com/success',
1919
'cancelUrl' => 'https://www.foodstore.com/failure',
2020
'notifyUrl' => 'https://www.foodstore.com/notify',
21+
'returnMethod' => 'POST',
22+
'cancelMethod' => 'link',
2123
'description' => 'Test Transaction',
2224
'transactionId' => '1234567890',
2325
'amount' => '14.65',
@@ -48,9 +50,9 @@ public function testGetData()
4850
$this->assertSame('2', $data['LMI_SIM_MODE']);
4951
$this->assertSame('https://www.foodstore.com/notify', $data['LMI_RESULT_URL']);
5052
$this->assertSame('https://www.foodstore.com/success', $data['LMI_SUCCESS_URL']);
51-
$this->assertSame('0', $data['LMI_SUCCESS_METHOD']);
53+
$this->assertSame('1', $data['LMI_SUCCESS_METHOD']);
5254
$this->assertSame('https://www.foodstore.com/failure', $data['LMI_FAIL_URL']);
53-
$this->assertSame('0', $data['LMI_FAIL_METHOD']);
55+
$this->assertSame('2', $data['LMI_FAIL_METHOD']);
5456
}
5557

5658
public function testSendData()

0 commit comments

Comments
 (0)