mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-06 17:44:12 +01:00
N°5784 - Fix unit test for PHP 8.2
This commit is contained in:
@@ -11,7 +11,7 @@ use MetaModel;
|
||||
* @preserveGlobalState disabled
|
||||
* @backupGlobals disabled
|
||||
*/
|
||||
class AttributeDefTest extends ItopDataTestCase {
|
||||
class AttributeDefinitionTest extends ItopDataTestCase {
|
||||
const CREATE_TEST_ORG = true;
|
||||
|
||||
protected function setUp(): void {
|
||||
@@ -86,7 +86,7 @@ PHP,
|
||||
<<<PHP
|
||||
/** @var \ormLinkSet \$ormLinkset */
|
||||
\$ormLinkset = \$oObject->Get('contacts_list');
|
||||
\$ormLinkset->AddItem(MetaModel::NewObject('Person', []));
|
||||
\$ormLinkset->AddItem(MetaModel::NewObject('lnkContactToTicket', []));
|
||||
\$oObject->Set('contacts_list', \$ormLinkset);
|
||||
PHP,
|
||||
false,
|
||||
@@ -164,7 +164,7 @@ PHP,
|
||||
'UserLocal',
|
||||
'password',
|
||||
<<<PHP
|
||||
$/** @var \ormPassword \$ormPassword */
|
||||
/** @var \ormPassword \$ormPassword */
|
||||
\$ormPassword = new ormPassword('somehash', 'somesalt');
|
||||
\$oObject->Set('password', \$ormPassword);
|
||||
PHP,
|
||||
Reference in New Issue
Block a user