Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 19, 2024
1 parent a4c1a16 commit 6c97286
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase/Command/CompletionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testMigrationsSubcommands()
{
$this->exec('completion subcommands migrations.migrations');
$expected = [
'migrate orm-cache-build orm-cache-clear create dump mark_migrated rollback seed status',
'dump migrate orm-cache-build orm-cache-clear create mark_migrated rollback seed status',
];
$actual = $this->_out->messages();
$this->assertEquals($expected, $actual);
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Command/Phinx/DumpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public function setUp(): void
$this->connection->execute('DROP TABLE IF EXISTS numbers');
$this->connection->execute('DROP TABLE IF EXISTS letters');
$this->connection->execute('DROP TABLE IF EXISTS parts');
$this->connection->execute('DROP TABLE IF EXISTS stores');
$this->dumpfile = ROOT . DS . 'config/TestsMigrations/schema-dump-test.lock';
}

Expand All @@ -106,6 +107,7 @@ public function tearDown(): void
$this->connection->execute('DROP TABLE IF EXISTS numbers');
$this->connection->execute('DROP TABLE IF EXISTS letters');
$this->connection->execute('DROP TABLE IF EXISTS parts');
$this->connection->execute('DROP TABLE IF EXISTS stores');
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/Config/AbstractConfigTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function getConfigArray()
$adapter = [
'migration_table' => 'phinxlog',
'adapter' => $connectionConfig['scheme'],
'user' => $connectionConfig['username'],
'pass' => $connectionConfig['password'],
'host' => $connectionConfig['host'],
'user' => $connectionConfig['username'] ?? '',
'pass' => $connectionConfig['password'] ?? '',
'host' => $connectionConfig['host'] ?? '',
'name' => $connectionConfig['database'],
];

Expand Down

0 comments on commit 6c97286

Please sign in to comment.