Skip to content

Commit 8cba483

Browse files
committed
[Tests] Replaced deprecated function utf8_decode with mb_convert_encoding
1 parent 7f86d57 commit 8cba483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/Core/Repository/SearchServiceLocationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ protected function createFolderWithNonPrintableUtf8Characters(): Content
191191
$createStruct->alwaysAvailable = false;
192192
$createStruct->setField(
193193
'name',
194-
utf8_decode("Non\x09Printable\x0EFolder")
194+
mb_convert_encoding("Non\x09Printable\x0EFolder", 'ISO-8859-1', 'UTF-8')
195195
);
196196

197197
$locationCreateStruct = $repository->getLocationService()->newLocationCreateStruct(2);
@@ -338,7 +338,7 @@ public function testNonPrintableUtf8Characters(): void
338338
'query' => new Criterion\Field(
339339
'name',
340340
Criterion\Operator::EQ,
341-
utf8_decode("Non\x09Printable\x0EFolder")
341+
mb_convert_encoding("Non\x09Printable\x0EFolder", 'ISO-8859-1', 'UTF-8')
342342
),
343343
]
344344
);

0 commit comments

Comments
 (0)