Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function GeneratesAnUrl() |
||
16 | { |
||
17 | $expected = EcommercePaymentRequest::TEST . '?'. |
||
18 | 'pspid=123456789' . '&'. |
||
19 | 'orderid=987654321' . '&'. |
||
20 | 'currency=EUR' . '&'. |
||
21 | 'amount=100' . '&'. |
||
22 | 'cn=Louis+XIV' . '&'. |
||
23 | 'owneraddress=1%2C+Rue+du+Palais' . '&'. |
||
24 | 'ownertown=Versailles' . '&'. |
||
25 | 'ownerzip=2300' . '&'. |
||
26 | 'ownercty=FR' . '&'. |
||
27 | 'email=louis.xiv%40versailles.fr' . '&'. |
||
28 | 'win3ds=mainw' . '&'. |
||
29 | PaymentRequest::SHASIGN_FIELD . '=' . FakeShaComposer::FAKESHASTRING; |
||
30 | |||
31 | $paymentRequest = $this->provideMinimalPaymentRequest(); |
||
32 | |||
33 | $urlGenerator = new UrlGenerator(); |
||
34 | $url = $urlGenerator->render($paymentRequest); |
||
35 | |||
36 | $this->assertEquals(strtolower($expected), strtolower($url)); |
||
37 | } |
||
38 | } |
||
39 |