Remove $adapter assignment from install and installtest

This commit is contained in:
DariusIII
2017-07-15 00:06:27 +02:00
parent 077e4d6555
commit 696208d313
3 changed files with 1 additions and 22 deletions
+1
View File
@@ -1,4 +1,5 @@
2017-07-14 DariusIII
* Fix: Remove $adapter assignment from install and installtest
* Fix: Fix phpunit install test
* Fix: Fix phpunit.xml bootstrap.php path
* Mrg: Merge dev-laravel-switch branch into dev
-11
View File
@@ -151,17 +151,6 @@ if (env('ADMIN_USER') === '' || env('ADMIN_PASS') === '' || env('ADMIN_EMAIL') =
exit();
}
switch (env('DB_SYSTEM')) {
case 'mysql':
$adapter = 'MySql';
break;
case 'pgsql':
$adapter = 'PostgreSql';
break;
default:
break;
}
$capsule = new Capsule;
// Same as database configuration file of Laravel.
$capsule->addConnection([
-11
View File
@@ -186,17 +186,6 @@ class InstallTest extends \PHPUnit\Framework\TestCase
exit();
}
switch (env('DB_SYSTEM')) {
case 'mysql':
$adapter = 'MySql';
break;
case 'pgsql':
$adapter = 'PostgreSql';
break;
default:
break;
}
$capsule = new Capsule;
// Same as database configuration file of Laravel.
$capsule->addConnection([