added test support
This commit is contained in:
parent
010914b7bd
commit
d2f733d8c2
|
@ -30,6 +30,8 @@ class DatabaseConnection
|
||||||
$dbUser = $this->configController->getConfig(configKey: 'dbUser');
|
$dbUser = $this->configController->getConfig(configKey: 'dbUser');
|
||||||
$dbPassword = $this->configController->getConfig(configKey: 'dbPassword');
|
$dbPassword = $this->configController->getConfig(configKey: 'dbPassword');
|
||||||
|
|
||||||
|
|
||||||
|
if (!$this->configController->getConfig(configKey: 'test')) {
|
||||||
// TODO create config => encryption key
|
// TODO create config => encryption key
|
||||||
try {
|
try {
|
||||||
$this->dbConnection = new PDO(
|
$this->dbConnection = new PDO(
|
||||||
|
@ -121,6 +123,7 @@ class DatabaseConnection
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -136,7 +139,7 @@ class DatabaseConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \PDO
|
* @return PDO
|
||||||
*/
|
*/
|
||||||
public function getConnection(): PDO
|
public function getConnection(): PDO
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue