mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +02:00
Improved foundational backend unit tests (#1405)
* part one of adding tests, updating core
* Apply fixes from StyleCI
[ci skip] [skip ci]
* we need xdebug for code coverage, and hhvm was already removed
* forgot about the sidecar for mysql completely 🤦
* gitignore removed this installed json we need to fake that we have extensions
* using reguarded closure
This commit is contained in:
@@ -138,6 +138,7 @@ class InstallCommand extends AbstractCommand
|
||||
protected function install()
|
||||
{
|
||||
try {
|
||||
$this->debug = $this->dataSource->isDebugMode();
|
||||
$this->dbConfig = $this->dataSource->getDatabaseConfiguration();
|
||||
|
||||
$validation = $this->getValidator()->make(
|
||||
@@ -214,7 +215,7 @@ class InstallCommand extends AbstractCommand
|
||||
$dbConfig = $this->dbConfig;
|
||||
|
||||
$config = [
|
||||
'debug' => false,
|
||||
'debug' => $this->debug,
|
||||
'database' => [
|
||||
'driver' => $dbConfig['driver'],
|
||||
'host' => $dbConfig['host'],
|
||||
|
Reference in New Issue
Block a user