mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
# Conflicts: # tests/php-unit-tests/unitary-tests/core/OQLTest.php # tests/php-unit-tests/unitary-tests/core/iTopConfigParserTest.php # tests/php-unit-tests/unitary-tests/webservices/RestTest.php
This commit is contained in:
@@ -44,10 +44,10 @@ class iTopConfigParserTest extends ItopTestCase
|
||||
parent::tearDown();
|
||||
if ($this->conf_exists) {
|
||||
// restoring config that was in place before the test
|
||||
$sBackupConfigFileContent = file_get_contents($this->tmpSavePath);
|
||||
$hItopConfigFile = @fopen($this->sConfigPath, 'w');
|
||||
fwrite($hItopConfigFile, $sBackupConfigFileContent);
|
||||
fclose($hItopConfigFile);
|
||||
@chmod($this->sConfigPath, 0770);
|
||||
$bRenameResult = rename($this->tmpSavePath, $this->sConfigPath);
|
||||
echo "Restored config file, result={$bRenameResult}";
|
||||
@chmod($this->sConfigPath, 0440);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user