From 6d0cf07708afdb0150220542a153d02a7a89b39f Mon Sep 17 00:00:00 2001 From: webeweb Date: Mon, 14 Mar 2022 10:52:42 +0100 Subject: [PATCH] Remove static::createClient() into sMsmode controller unit tests --- Tests/Controller/SMSModeControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Controller/SMSModeControllerTest.php b/Tests/Controller/SMSModeControllerTest.php index f4ec802..434ea20 100644 --- a/Tests/Controller/SMSModeControllerTest.php +++ b/Tests/Controller/SMSModeControllerTest.php @@ -30,7 +30,7 @@ class SMSModeControllerTest extends AbstractWebTestCase { public function testDeliveryReportCallbackAction(): void { // Create a client. - $client = static::createClient(); + $client = $this->client; // Make a GET request with XML HTTP request. $client->request("GET", "/delivery-report-callback?numero=33601020304&date_reception=2010-03-25+09%3A52%3A17&statut=11&smsID=S7EpYZ5kmS87&refClient=12azer34&mcc_mnc=20801"); @@ -55,7 +55,7 @@ public function testDeliveryReportCallbackAction(): void { public function testSmsReplyCallbackAction(): void { // Create a client. - $client = static::createClient(); + $client = $this->client; // Make a GET request with XML HTTP request. $client->request("GET", "/sms-reply-callback?numero=36034&message=bonjour&emetteur=33601020304&date_reception=01012013-122233&smsID=abcd1234&refClient=monclient123&responseID=azertyu123");