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

This commit is contained in:
Molkobain
2023-01-11 13:26:54 +01:00
parent 1271a895d1
commit 16390c9b00
4 changed files with 16 additions and 16 deletions

View File

@@ -334,7 +334,7 @@ class MetaModelTest extends ItopDataTestCase
try {
MetaModel::GetEnumStyle('Contact', 'name', '');
} catch (CoreException $e) {
self::assertContains('AttributeEnum', $e->getMessage());
self::assertStringContainsString('AttributeEnum', $e->getMessage());
return;
}