mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
parent
94e594b9be
commit
7e4d844ab3
@ -102,9 +102,9 @@ trait ApplicationTrait
|
||||
*/
|
||||
public function isDatabaseInstalled(bool $checkConnection = false): bool
|
||||
{
|
||||
$dieOnError = isset(Yii::$app->params['databaseInstalled']) && $this->params['databaseInstalled'];
|
||||
$dieOnError = $this->params['databaseInstalled'] ?? null;
|
||||
|
||||
if (!$checkConnection) {
|
||||
if (!$checkConnection && $dieOnError !== null) {
|
||||
return $dieOnError;
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,6 @@ $config = [
|
||||
],
|
||||
'params' => [
|
||||
'installed' => false,
|
||||
'databaseInstalled' => false,
|
||||
'databaseDefaultStorageEngine' => 'InnoDB',
|
||||
'dynamicConfigFile' => '@config/dynamic.php',
|
||||
'moduleAutoloadPaths' => ['@app/modules', '@humhub/modules'],
|
||||
|
@ -6,12 +6,12 @@
|
||||
* @license https://www.humhub.com/licences
|
||||
*/
|
||||
|
||||
namespace humhub\tests\codeception\unit\components;
|
||||
namespace humhub\tests\codeception\unit;
|
||||
|
||||
use tests\codeception\_support\HumHubDbTestCase;
|
||||
use Yii;
|
||||
|
||||
class BaseSettingsManagerTest extends HumHubDbTestCase
|
||||
class ApplicationBaseTest extends HumHubDbTestCase
|
||||
{
|
||||
public function testIsDatabaseInstalled()
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user