mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Fix failing install test in PHP 8.0
This commit is contained in:
parent
60465fb2db
commit
678495d69e
2 changed files with 16 additions and 2 deletions
|
|
@ -3,7 +3,14 @@ use \Codeception\Configuration;
|
|||
|
||||
$I = new InstallTester($scenario);
|
||||
|
||||
$config = (!$this->env) ? Configuration::suiteSettings('install', Configuration::config()) : Configuration::suiteEnvironments('install')[$this->env];
|
||||
if (isset($this->env))
|
||||
{
|
||||
$config = Configuration::suiteEnvironments('install')[$this->env];
|
||||
}
|
||||
else
|
||||
{
|
||||
$config = Configuration::suiteSettings('install', Configuration::config());
|
||||
}
|
||||
|
||||
$db_config = $config['modules']['config']['Db'];
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,14 @@ use \Codeception\Configuration;
|
|||
|
||||
$I = new InstallTester($scenario);
|
||||
|
||||
$config = (!$this->env) ? Configuration::suiteSettings('install', Configuration::config()) : Configuration::suiteEnvironments('install')[$this->env];
|
||||
if (isset($this->env))
|
||||
{
|
||||
$config = Configuration::suiteEnvironments('install')[$this->env];
|
||||
}
|
||||
else
|
||||
{
|
||||
$config = Configuration::suiteSettings('install', Configuration::config());
|
||||
}
|
||||
|
||||
$db_config = $config['modules']['config']['Db'];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue