From 19977946c1b68607e39fcaf456a5798252ce2090 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 6 Nov 2024 15:24:43 +0100 Subject: [PATCH] [Tests] Replaced deprecated function utf8_decode with mb_convert_encoding --- .../integration/Core/Repository/SearchServiceLocationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/Core/Repository/SearchServiceLocationTest.php b/tests/integration/Core/Repository/SearchServiceLocationTest.php index 4974ea32d9..ea97cb39a4 100644 --- a/tests/integration/Core/Repository/SearchServiceLocationTest.php +++ b/tests/integration/Core/Repository/SearchServiceLocationTest.php @@ -191,7 +191,7 @@ protected function createFolderWithNonPrintableUtf8Characters(): Content $createStruct->alwaysAvailable = false; $createStruct->setField( 'name', - utf8_decode("Non\x09Printable\x0EFolder") + mb_convert_encoding("Non\x09Printable\x0EFolder", 'ISO-8859-1', 'UTF-8') ); $locationCreateStruct = $repository->getLocationService()->newLocationCreateStruct(2); @@ -338,7 +338,7 @@ public function testNonPrintableUtf8Characters(): void 'query' => new Criterion\Field( 'name', Criterion\Operator::EQ, - utf8_decode("Non\x09Printable\x0EFolder") + mb_convert_encoding("Non\x09Printable\x0EFolder", 'ISO-8859-1', 'UTF-8') ), ] );