N°4714 Update iTopXmlVersionIntegrationTest::testItopXmlVersion to use new constant

This commit is contained in:
Pierre Goiffon
2022-02-01 15:27:57 +01:00
parent 2733e7966f
commit de053eed72

View File

@@ -50,10 +50,10 @@ class iTopXmlVersionIntegrationTest extends ItopTestCase
public function testItopXmlVersion()
{
// Retrieve only first 2 parts of the version
$aCoreVersionParts = explode('.', ITOP_VERSION);
$aCoreVersionParts = explode('.', ITOP_CORE_VERSION);
$sCoreVersion = $aCoreVersionParts[0].'.'.$aCoreVersionParts[1];
$sXMLVersion = ITOP_DESIGN_LATEST_VERSION;
$this->assertSame($sXMLVersion, $sCoreVersion, "XML datamodel version (ITOP_DESIGN_LATEST_VERSION={$sXMLVersion}) is not aligned with the app. core version (ITOP_VERSION={$sCoreVersion})");
$this->assertSame($sXMLVersion, $sCoreVersion, "XML datamodel version (ITOP_DESIGN_LATEST_VERSION={$sXMLVersion}) is not aligned with the app. core version (ITOP_CORE_VERSION={$sCoreVersion})");
}
}