summaryrefslogtreecommitdiff
path: root/tests/Unit/HasDatabase.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-10-13 13:43:08 +0200
committermsquare <msquare@notrademark.de>2019-10-13 13:43:08 +0200
commitc0e97bfe753013b115345b00cbfd9858799a6ac9 (patch)
tree7e98447e4c7d874ec27e26801771086843f3efc3 /tests/Unit/HasDatabase.php
parent285f5509dd948c2359c861eec364a677e8ce4910 (diff)
parent7a2427e70296ef652f76fe2e2edc47d2e0f70f5a (diff)
Password recovery rebuild, correctly translated Mails and some minor fixes #658
Diffstat (limited to 'tests/Unit/HasDatabase.php')
-rw-r--r--tests/Unit/HasDatabase.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/Unit/HasDatabase.php b/tests/Unit/HasDatabase.php
index 7a58bb2b..dbaa253e 100644
--- a/tests/Unit/HasDatabase.php
+++ b/tests/Unit/HasDatabase.php
@@ -2,7 +2,6 @@
namespace Engelsystem\Test\Unit;
-use Engelsystem\Application;
use Engelsystem\Database\Database;
use Engelsystem\Database\Migration\Migrate;
use Engelsystem\Database\Migration\MigrationServiceProvider;
@@ -27,12 +26,11 @@ trait HasDatabase
$connection->getPdo()->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->database = new Database($connection);
- $app = new Application();
- $app->instance(Database::class, $this->database);
- $app->register(MigrationServiceProvider::class);
+ $this->app->instance(Database::class, $this->database);
+ $this->app->register(MigrationServiceProvider::class);
/** @var Migrate $migration */
- $migration = $app->get('db.migration');
+ $migration = $this->app->get('db.migration');
$migration->initMigration();
$this->database