'Cake\Database\Connection', 'driver' => 'Cake\Database\Driver\Sqlite', 'database' => TMP . 'debug_kit.sqlite', 'encoding' => 'utf8', 'cacheMetadata' => true, 'quoteIdentifiers' => false, ]); ConnectionManager::alias('test_debug_kit', 'debug_kit'); // Fixate sessionid early on, as php7.2+ // does not allow the sessionid to be set after stdout // has been written to. session_id('cli'); // hacky way to skip migrations if (!in_array('skip-migrations', $_SERVER['argv'])) { echo "[ * ] Running DB migrations, it may take some time ...\n"; $migrator = new Migrator(); $migrator->runMany([ ['connection' => 'test'], ['plugin' => 'Tags', 'connection' => 'test'], ['plugin' => 'ADmad/SocialAuth', 'connection' => 'test'] ]); } else { echo "[ * ] Skipping DB migrations ...\n"; }