Skip to content

Commit

Permalink
[Tests] Replaced deprecated function utf8_decode with mb_convert_enco…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
alongosz committed Nov 6, 2024
1 parent 23f3edb commit 1997794
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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')
),
]
);
Expand Down

0 comments on commit 1997794

Please sign in to comment.