Skip to content

Commit 80676a2

Browse files
committed
bugs fixed.
1 parent e4003fa commit 80676a2

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Providers/MigrationGeneratorServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ static function (Application $app, array $params) use ($config) {
163163
'driver' => $dbConfig['driver'],
164164
];
165165
$connection = DriverManager::getConnection($connectionParams);
166-
167166
return new MigrationGenerator(
168167
$app->make(DefinitionResolverInterface::class, ['connection' => $connection]),
169168
$app->make(MigrationCompilerInterface::class),

tests/Integration/Console/Commands/MigrationGeneratorCommandTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
class MigrationGeneratorCommandTest extends DbTestCase
99
{
1010

11+
protected string $migrationPath = '';
12+
1113
protected function setUp(): void
1214
{
1315
parent::setUp();
14-
config()->set('migration-generator.config.migration_dir', $this->migrationPath);
16+
$this->migrationPath = (string)config()->get('migration-generator.config.migration_dir');
1517

1618
if (!File::exists($this->migrationPath)) {
1719
File::makeDirectory($this->migrationPath);
@@ -33,6 +35,6 @@ public function testCommandGeneratesMigrationFiles(): void
3335
protected function tearDown(): void
3436
{
3537
parent::tearDown();
36-
//File::cleanDirectory($this->migrationPath);
38+
File::cleanDirectory($this->migrationPath);
3739
}
3840
}

tests/TestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
abstract class TestCase extends OrchestraTestCase
1313
{
1414
protected $resourceFolder = '';
15-
protected string $migrationPath = '';
1615

1716
protected function setUp(): void
1817
{
1918
parent::setUp();
2019
$this->resourceFolder = __DIR__ . '/Resources/';
21-
$this->migrationPath = $this->resourceFolder . '/ExpectedMigrations/run/';
2220
}
2321

2422
/**

0 commit comments

Comments
 (0)