Fix TriggerTest relying on hardcoded admin user id

This commit is contained in:
Pierre Goiffon
2023-11-16 11:16:59 +01:00
parent 7521fc3006
commit 47ccd7589f

View File

@@ -92,7 +92,7 @@ class TriggerTest extends ItopDataTestCase
IssueLog::Enable($sTestLogPath);
try {
$oPerson1 = MetaModel::GetObject(Person::class, 1, true);
$oPerson1 = MetaModel::GetObjectByName(Person::class, 'Claude Monet');
$sExceptionMessage = 'My test exception message';
$oException = new Exception($sExceptionMessage);