diff --git a/tests/TestCase/Command/CompletionTest.php b/tests/TestCase/Command/CompletionTest.php index 7a92ed49..c9daf91f 100644 --- a/tests/TestCase/Command/CompletionTest.php +++ b/tests/TestCase/Command/CompletionTest.php @@ -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); diff --git a/tests/TestCase/Command/Phinx/DumpTest.php b/tests/TestCase/Command/Phinx/DumpTest.php index f6d2a6bf..847fa58b 100644 --- a/tests/TestCase/Command/Phinx/DumpTest.php +++ b/tests/TestCase/Command/Phinx/DumpTest.php @@ -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'; } @@ -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'); } /** diff --git a/tests/TestCase/Config/AbstractConfigTestCase.php b/tests/TestCase/Config/AbstractConfigTestCase.php index 049739fc..5929161a 100644 --- a/tests/TestCase/Config/AbstractConfigTestCase.php +++ b/tests/TestCase/Config/AbstractConfigTestCase.php @@ -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'], ];