mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
✅ Fix TriggerTest relying on hardcoded admin user id
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user