Skip to content

Commit 10fe4d2

Browse files
committed
fix.
1 parent 369a76a commit 10fe4d2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/Unit/Generator/MigrationGeneratorTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
use Illuminate\Contracts\View\Factory as ViewFactory;
8-
use Illuminate\Database\DatabaseManager;
98
use N3XT0R\MigrationGenerator\Service\Generator\Compiler\MigrationCompiler;
109
use N3XT0R\MigrationGenerator\Service\Generator\Compiler\MigrationCompilerInterface;
1110
use N3XT0R\MigrationGenerator\Service\Generator\MigrationGenerator;
@@ -19,19 +18,6 @@ class MigrationGeneratorTest extends TestCase
1918
public function setUp(): void
2019
{
2120
parent::setUp();
22-
/**
23-
* @var DatabaseManager $dbManager
24-
*/
25-
$dbManager = $this->app->get('db');
26-
$dbConfig = $dbManager->connection()->getConfig();
27-
28-
$connectionParams = [
29-
'dbname' => $dbConfig['database'],
30-
'user' => $dbConfig['username'],
31-
'password' => $dbConfig['password'],
32-
'host' => $dbConfig['host'],
33-
'driver' => 'pdo_mysql',
34-
];
3521
$doctrine = $this->getDoctrineConnection($this->getDatabaseManager());
3622
$resolver = new DefinitionResolver($doctrine, []);
3723
$compiler = $this->app->make(MigrationCompilerInterface::class);

0 commit comments

Comments
 (0)