@@ -18,7 +18,10 @@ public function setUp()
18
18
'transactionId ' => 'TX4567890 ' ,
19
19
'description ' => 'Free Text Description ' ,
20
20
'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 ' ,
22
25
));
23
26
}
24
27
@@ -33,6 +36,16 @@ public function testGetData()
33
36
$ this ->assertSame ('12.34 ' , $ data ['Amount ' ]);
34
37
$ this ->assertSame ('EUR ' , $ data ['Currency ' ]);
35
38
$ 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 ));
37
50
}
38
51
}
0 commit comments