💚 renaming postbuild test folder + fix tests

This commit is contained in:
odain
2020-08-26 12:25:31 +02:00
parent 2ad4fd1707
commit 8319d655b9
6 changed files with 25 additions and 12 deletions

View File

@@ -57,9 +57,22 @@ class iTopModulesPhpVersionIntegrationTest extends ItopTestCase
$matches
);
$this->assertSame($sExpectedVersion, $matches[1], "$sPhpFile file refer does not refer to current itop version ($matches[1] instead of expected $sExpectedVersion)");
$this->assertSame($this->KeepMajorVersion($sExpectedVersion), $this->KeepMajorVersion($matches[1]),
"$sPhpFile file refer does not refer to current itop version ($matches[1] instead of expected $sExpectedVersion)");
}
private function KeepMajorVersion($sVersion)
{
preg_match(
"#(.*)\.[^\.]*$#",
$sVersion,
$matches
);
return $matches[1];
}
public function iTopModulesPhpVersionProvider()
{
parent::setUp();