Fix CI

This commit is contained in:
Eric Espie
2026-01-19 17:58:36 +01:00
parent 5346ccd13d
commit 7ffddbb633
4 changed files with 18 additions and 17 deletions

View File

@@ -42,6 +42,19 @@ define('ITOP_DEFAULT_ENV', 'production');
define('MAINTENANCE_MODE_FILE', APPROOT.'data/.maintenance');
define('READONLY_MODE_FILE', APPROOT.'data/.readonly');
/**
* Exclude the parent class from the list
*
* @package iTopORM
*/
define('ENUM_CHILD_CLASSES_EXCLUDETOP', 1);
/**
* Include the parent class in the list
*
* @package iTopORM
*/
define('ENUM_CHILD_CLASSES_ALL', 2);
$fItopStarted = microtime(true);
$iItopInitialMemory = memory_get_usage(true);

View File

@@ -24,19 +24,6 @@
* @license http://opensource.org/licenses/AGPL-3.0
*/
/**
* Exclude the parent class from the list
*
* @package iTopORM
*/
define('ENUM_CHILD_CLASSES_EXCLUDETOP', 1);
/**
* Include the parent class in the list
*
* @package iTopORM
*/
define('ENUM_CHILD_CLASSES_ALL', 2);
abstract class ModelReflection
{
abstract public function GetClassIcon($sClass, $bImgTag = true);

View File

@@ -30,8 +30,6 @@ use MetaModel;
use ReflectionClass;
use utils;
require_once(APPROOT.'core/modelreflection.class.inc.php');
/**
*
* A user editable dashboard page

View File

@@ -36,12 +36,15 @@ class DashboardSerializerTest extends ItopDataTestCase
/** @var \Combodo\iTop\DesignElement $oRootNode */
$oRootNode = $oDOMDocument->createElement('root');
$oRootNode->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
$oDOMDocument->appendChild($oRootNode);
Combodo\iTop\PropertyType\Serializer\XMLSerializer::GetInstance()->Serialize($normalizedValue, $oRootNode, 'DashboardDefinition', 'Dashboard');
Combodo\iTop\PropertyType\Serializer\XMLSerializer::GetInstance()->Serialize($normalizedValue, $oRootNode, 'DashboardGrid', 'Dashboard');
$sActualXML = $oDOMDocument->saveXML();
var_export($sActualXML);
$this->AssertEqualiTopXML($sXMLContent, $sActualXML);
}
@@ -72,7 +75,7 @@ class DashboardSerializerTest extends ItopDataTestCase
],
'sXMLContent' => <<<XML
<?xml version="1.0"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Combodo-Dashboard-Grid">
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<title>Bienvenido al Panel de Control Panel</title>
<refresh>60</refresh>
<pos_dashlets>