mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-01 23:24:12 +01:00
N°4569 - Fix unit tests
This commit is contained in:
@@ -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'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user