From 09afcb229ce0ae096e49e48d2ddda1820f9077ba Mon Sep 17 00:00:00 2001 From: odain Date: Fri, 19 Dec 2025 11:11:03 +0100 Subject: [PATCH] ci: fix callUrl with posted params --- tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php index b00b6368a..0c4742379 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php @@ -658,20 +658,14 @@ abstract class ItopTestCase extends KernelTestCase curl_setopt($ch, CURLOPT_URL, $sUrl); curl_setopt($ch, CURLOPT_POST, 1);// set post data to true - if (!is_array($aPostFields)) { - var_dump($aPostFields); - } - curl_setopt($ch, CURLOPT_POSTFIELDS, $aPostFields); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Force disable of certificate check as most of dev / test env have a self-signed certificate curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); - - var_dump($aCurlOptions); curl_setopt_array($ch, $aCurlOptions); + curl_setopt($ch, CURLOPT_POSTFIELDS, $aPostFields); $sOutput = curl_exec($ch); - //\IssueLog::Info("$sUrl error code:", null, ['error' => curl_error($ch)]); $info = curl_getinfo($ch); $this->aLastCurlGetInfo = $info;