diff --git a/test/setup/iTopDesignFormat/Convert-samples/1.6_to_1.7_acl.expected.xml b/test/setup/iTopDesignFormat/Convert-samples/1.6_to_1.7_acl.expected.xml index 6f4f3dff9..16743f08a 100644 --- a/test/setup/iTopDesignFormat/Convert-samples/1.6_to_1.7_acl.expected.xml +++ b/test/setup/iTopDesignFormat/Convert-samples/1.6_to_1.7_acl.expected.xml @@ -16,15 +16,15 @@ - + - + /itop_design/constants - + /itop_design/constants diff --git a/test/setup/iTopDesignFormat/Convert-samples/1.7_to_3.0.expected.xml b/test/setup/iTopDesignFormat/Convert-samples/1.7_to_3.0.expected.xml index 7694137e2..fed54dac9 100644 --- a/test/setup/iTopDesignFormat/Convert-samples/1.7_to_3.0.expected.xml +++ b/test/setup/iTopDesignFormat/Convert-samples/1.7_to_3.0.expected.xml @@ -108,9 +108,9 @@ - + - + /itop_design/branding/themes @@ -125,19 +125,19 @@ - + /itop_design/branding/themes/theme[@id="test-red"]/imports ../css/css-variables.scss - + /itop_design/branding/themes/theme[@id="test-red"]/stylesheets ../css/ui-lightness/jqueryui.scss - + /itop_design/branding/themes/theme[@id="test-red"]/stylesheets ../css/main.scss diff --git a/test/setup/iTopDesignFormat/iTopDesignFormatTest.php b/test/setup/iTopDesignFormat/iTopDesignFormatTest.php index 7241eed4c..bc8fa6b42 100644 --- a/test/setup/iTopDesignFormat/iTopDesignFormatTest.php +++ b/test/setup/iTopDesignFormat/iTopDesignFormatTest.php @@ -50,16 +50,19 @@ class TestForITopDesignFormatClass extends ItopTestCase $oDesignFormat->Convert($sTargetVersion); $sConvertedXml = $oInputDocument->saveXML(); + // Erase dynamic values + $sConvertedXml = preg_replace('@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'), );