Skip to content

Commit e5e81ea

Browse files
committed
Url query modification test added
1 parent 2f538e1 commit e5e81ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Message/PurchaseRequestTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function setUp()
2424
'username' => 'SOAP_USERNAME',
2525
'password' => 'oJ2rHLBVSbD5iGfT',
2626
'clientIp' => '127.0.0.1',
27-
'returnUrl' => 'https://www.foodstore.com/success',
28-
'cancelUrl' => 'https://www.foodstore.com/failure',
29-
'notifyUrl' => 'https://www.foodstore.com/notify',
27+
'returnUrl' => 'https://www.foodstore.com/success.html?parameter=somedata',
28+
'cancelUrl' => 'https://www.foodstore.com/failure.html?parameter=somedata',
29+
'notifyUrl' => 'https://www.foodstore.com/notify.html?parameter=somedata',
3030
'subId' => 'shop1',
3131
'shopId' => '2568-B415rh_785',
3232
'shopLabel' => 'www.foodstore.com',
@@ -58,9 +58,9 @@ public function testGetData()
5858
$this->assertSame('shop1', (string) $request->subId);
5959
$this->assertSame('14.65', (string) $request->amount);
6060
$this->assertSame('EUR', (string) $request->currency);
61-
$this->assertSame('https%3A%2F%2Fwww.foodstore.com%2Fsuccess%3Fmtid%3DTX9997888%26subid%3Dshop1%26amount%3D14.65%26currency%3DEUR', (string) $request->okUrl);
62-
$this->assertSame('https%3A%2F%2Fwww.foodstore.com%2Ffailure', (string) $request->nokUrl);
63-
$this->assertSame('https%3A%2F%2Fwww.foodstore.com%2Fnotify%3Fmtid%3DTX9997888%26subid%3Dshop1%26amount%3D14.65%26currency%3DEUR', (string) $request->pnUrl);
61+
$this->assertSame('https%3A%2F%2Fwww.foodstore.com%2Fsuccess.html%3Fparameter%3Dsomedata%26mtid%3DTX9997888%26subid%3Dshop1%26amount%3D14.65%26currency%3DEUR', (string) $request->okUrl);
62+
$this->assertSame('https%3A%2F%2Fwww.foodstore.com%2Ffailure.html%3Fparameter%3Dsomedata', (string) $request->nokUrl);
63+
$this->assertSame('https%3A%2F%2Fwww.foodstore.com%2Fnotify.html%3Fparameter%3Dsomedata%26mtid%3DTX9997888%26subid%3Dshop1%26amount%3D14.65%26currency%3DEUR', (string) $request->pnUrl);
6464
$this->assertSame('2568-B415rh_785', (string) $request->shopId);
6565
$this->assertSame('www.foodstore.com', (string) $request->shopLabel);
6666
$this->assertSame('client123', (string) $request->merchantclientid);

0 commit comments

Comments
 (0)