Fix tests

This commit is contained in:
jf-cbd
2025-03-06 14:54:18 +01:00
parent 278496eaf6
commit 1142bf327c
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class RestServicesTest extends ItopDataTestCase
{
$oRS = new CoreServices();
$sOutputJson = $oRS->SanitizeJsonInput($sJsonData);
static::assertEquals($sExpectedJsonDataSanitized, $sOutputJson);
static::assertJsonStringEqualsJsonString($sExpectedJsonDataSanitized, $sOutputJson);
}
/**
@@ -90,7 +90,7 @@ class RestServicesTest extends ItopDataTestCase
$oRestResultWithObject = new RestResultWithObjects();
$oRestResultWithObject->AddObject(0, 'ok', $oUser, ['UserLocal' => ['login', 'password']]);
$oRestResultWithObject->SanitizeContent();
static::assertEquals($sExpectedJsonDataSanitized, json_encode($oRestResultWithObject));
static::assertJsonStringEqualsJsonString($sExpectedJsonDataSanitized, json_encode($oRestResultWithObject));
}
/**