N°4569 - Fix unit tests

This commit is contained in:
Eric Espie
2022-01-26 15:30:03 +01:00
parent a839b1c4ae
commit 9a6d40e9db
3 changed files with 13 additions and 10 deletions

View File

@@ -50,16 +50,19 @@ class TestForITopDesignFormatClass extends ItopTestCase
$oDesignFormat->Convert($sTargetVersion);
$sConvertedXml = $oInputDocument->saveXML();
// Erase dynamic values
$sConvertedXml = preg_replace('@<trashed_node id="\w+"@', '<trashed_node id="XXX"', $sConvertedXml);
$this->assertEquals($sExpectedXml, $sConvertedXml);
}
public function ConvertProvider()
{
return array(
//'1.6 to 1.7 acl' => array('1.7', '1.6_to_1.7_acl'),
'1.6 to 1.7 acl' => array('1.7', '1.6_to_1.7_acl'),
'1.7 to 1.6 acl' => array('1.6', '1.7_to_1.6_acl'),
'1.7 to 1.6' => array('1.6', '1.7_to_1.6'),
//'1.7 to 3.0' => array('3.0', '1.7_to_3.0'),
'1.7 to 3.0' => array('3.0', '1.7_to_3.0'),
'3.0 to 1.7' => array('1.7', '3.0_to_1.7'),
'3.0 to 1.7 no previous' => array('1.7', '3.0_to_1.7_no_previous'),
);