N°5857 - PHPUnit: Replace usage of deprecated assetContains with assertStringContainsString

This commit is contained in:
Molkobain
2023-01-11 11:59:01 +01:00
parent 030f1e2463
commit 1271a895d1

View File

@@ -343,7 +343,7 @@ class DataSynchroTest extends ItopDataTestCase
$aKeys = ["creation", "update", "deletion"];
foreach ($aKeys as $sKey){
$this->assertContains("$sKey errors: 0", $sResultsViewable, "step $iRow : below res should contain '$sKey errors: 0': " . $sResultsViewable);
$this->assertStringContainsString("$sKey errors: 0", $sResultsViewable, "step $iRow : below res should contain '$sKey errors: 0': " . $sResultsViewable);
}
//N°3805 : potential javascript returned like