From b1f49ae48767ddc49c8bae92ea15ffcc41c2a160 Mon Sep 17 00:00:00 2001 From: jf-cbd Date: Fri, 28 Feb 2025 15:51:11 +0100 Subject: [PATCH] Clean test --- .../unitary-tests/core/RestServicesTest.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/php-unit-tests/unitary-tests/core/RestServicesTest.php b/tests/php-unit-tests/unitary-tests/core/RestServicesTest.php index 84f8692d0..0e013338a 100644 --- a/tests/php-unit-tests/unitary-tests/core/RestServicesTest.php +++ b/tests/php-unit-tests/unitary-tests/core/RestServicesTest.php @@ -137,13 +137,4 @@ class RestServicesTest extends ItopDataTestCase '{"objects":{"UserLocal::-1":{"code":0,"message":"ok","class":"UserLocal","key":-1,"fields":{"login":"******","password":"******"}}},"code":0,"message":null}' ], ]; } - - function recursive_unset(&$array, $unwanted_key) { - unset($array[$unwanted_key]); - foreach ($array as &$value) { - if (is_array($value)) { - $this->recursive_unset($value, $unwanted_key); - } - } - } }