diff --git a/cypress.config.dist.js b/cypress.config.dist.js index f57a47d3efd..c402c269e5d 100644 --- a/cypress.config.dist.js +++ b/cypress.config.dist.js @@ -33,6 +33,7 @@ module.exports = defineConfig({ password: 'joomla-17082005', db_type: 'MySQLi', db_host: 'localhost', + db_port: '', db_name: 'test_joomla', db_user: 'root', db_password: '', diff --git a/tests/System/plugins/db.js b/tests/System/plugins/db.js index 8e7ce71739f..02ee7b83c89 100644 --- a/tests/System/plugins/db.js +++ b/tests/System/plugins/db.js @@ -33,6 +33,7 @@ function queryTestDB(joomlaQuery, config) { if (config.env.db_type === 'pgsql' || config.env.db_type === 'PostgreSQL (PDO)') { const connection = postgres({ host: config.env.db_host, + port: config.env.db_port, database: config.env.db_name, username: config.env.db_user, password: config.env.db_password, @@ -73,6 +74,7 @@ function queryTestDB(joomlaQuery, config) { // Create the connection and connect const connection = mysql.createConnection({ host: config.env.db_host, + port: config.env.db_port, user: config.env.db_user, password: config.env.db_password, database: config.env.db_name,