Skip to content

Commit cb0f9b9

Browse files
author
Camille Islasse
committed
Add test if endpoint is null and endpoint_url has custom url
1 parent 3b11a9a commit cb0f9b9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: tests/Api/ApiTest.php

+14
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,20 @@ public function provideCreateRequestUrl(): Generator
172172
'https://paiement.systempay.fr/vads-payment/?vads_action_mode=INTERACTIVE&vads_page_action=PAYMENT&vads_payment_config=SINGLE&vads_return_mode=POST&vads_version=V2&vads_amount=1234&vads_currency=978&vads_trans_date=20200101120000&vads_trans_id=000001&vads_site_id=123456789&vads_ctx_mode=PRODUCTION&signature=p9TbeohlOZVPAmhEwfAlGxRJxFAKpNg5wYBSN9emuqs%3D',
173173
];
174174

175+
yield [
176+
[
177+
'endpoint_url' => 'https://custom-url.fr/vads-payment/',
178+
],
179+
[
180+
'vads_amount' => '1234',
181+
'vads_currency' => '978',
182+
'vads_trans_date' => '20200101120000',
183+
'vads_trans_id' => '000001',
184+
],
185+
'https://custom-url.fr/vads-payment/?vads_action_mode=INTERACTIVE&vads_page_action=PAYMENT&vads_payment_config=SINGLE&vads_return_mode=POST&vads_version=V2&vads_amount=1234&vads_currency=978&vads_trans_date=20200101120000&vads_trans_id=000001&vads_site_id=123456789&vads_ctx_mode=PRODUCTION&signature=p9TbeohlOZVPAmhEwfAlGxRJxFAKpNg5wYBSN9emuqs%3D',
186+
];
187+
188+
175189
yield [
176190
[
177191
'endpoint' => Api::ENDPOINT_SCELLIUS,

0 commit comments

Comments
 (0)