Add unit tests for XML migration from 1.8 > 1.7 and 1.7 > 1.6

This commit is contained in:
Molkobain
2020-08-19 11:36:40 +02:00
parent 0a4ce0865e
commit e6bab46854
5 changed files with 53 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class TestForITopDesignFormatClass extends ItopTestCase
/**
* @covers iTopDesignFormat::Convert
* @dataProvider testMigrationMethodProvider
* @dataProvider MigrationMethodProvider
*
* @param string $sTargetVersion
* @param string $sInputXmlFileName example "1.7_to_1.6.input"
@@ -64,10 +64,11 @@ class TestForITopDesignFormatClass extends ItopTestCase
return file_get_contents($sCurrentPath.DIRECTORY_SEPARATOR.$sFileName.'.xml');
}
public function testMigrationMethodProvider()
public function MigrationMethodProvider()
{
return array(
'1.7 to 1.6' => array('1.6', '1.7_to_1.6.input', '1.7_to_1.6.expected'),
'1.8 to 1.7' => array('1.7', '1.8_to_1.7.input', '1.8_to_1.7.expected'),
);
}
}