@@ -18,7 +18,10 @@ public function setUp()
1818 'transactionId ' => 'TX4567890 ' ,
1919 'description ' => 'Free Text Description ' ,
2020 'amount ' => '12.34 ' ,
21- 'currency ' => 'EUR '
21+ 'currency ' => 'EUR ' ,
22+ 'returnUrl ' => 'http://example.com/return ' ,
23+ 'cancelUrl ' => 'http://example.com/cancel ' ,
24+ 'notifyUrl ' => 'http://example.com/notify ' ,
2225 ));
2326 }
2427
@@ -33,6 +36,16 @@ public function testGetData()
3336 $ this ->assertSame ('12.34 ' , $ data ['Amount ' ]);
3437 $ this ->assertSame ('EUR ' , $ data ['Currency ' ]);
3538 $ this ->assertSame ('Free Text Description ' , $ data ['MerchantFreeText ' ]);
36- $ this ->assertSame ('84bbad2a636aa9226c03f17ff813a181 ' , $ data ['Checksum ' ]);
39+ $ this ->assertSame ('7320d93a3daa1e296f56fa7f40d6fb8b ' , $ data ['Checksum ' ]);
40+ $ this ->assertSame ('http://example.com/return ' , $ data ['OnSuccessUrl ' ]);
41+ $ this ->assertSame ('http://example.com/cancel ' , $ data ['OnFailureUrl ' ]);
42+ $ this ->assertSame ('http://example.com/notify ' , $ data ['TransferUrl ' ]);
43+ }
44+
45+ public function testSendData ()
46+ {
47+ $ data = $ this ->request ->getData ();
48+ $ response = $ this ->request ->sendData ($ data );
49+ $ this ->assertSame ('Omnipay\Ecopayz\Message\PurchaseResponse ' , get_class ($ response ));
3750 }
3851}
0 commit comments