mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
✅ Fix DBBackupTest (again :/)
Was working on Windows but not on Linux...
This commit is contained in:
@@ -255,7 +255,7 @@ class DBBackup
|
||||
return $aRet;
|
||||
}
|
||||
|
||||
protected static function EscapeShellArg($sValue)
|
||||
public static function EscapeShellArg($sValue)
|
||||
{
|
||||
// Note: See comment from the 23-Apr-2004 03:30 in the PHP documentation
|
||||
// It suggests to rely on pctnl_* function instead of using escapeshellargs
|
||||
|
||||
@@ -51,6 +51,6 @@ class DBBackupTest extends ItopTestCase
|
||||
$oConfigToTest->Set('db_tls.ca', $sTestCa);
|
||||
$sCliArgsCapathCfg = DBBackup::GetMysqlCliTlsOptions($oConfigToTest);
|
||||
$this->assertStringStartsWith(' --ssl', $sCliArgsMinCfg);
|
||||
$this->assertStringEndsWith('--ssl-ca="'.$sTestCa.'"', $sCliArgsCapathCfg);
|
||||
$this->assertStringEndsWith('--ssl-ca='.DBBackup::EscapeShellArg($sTestCa), $sCliArgsCapathCfg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user