Unit/System Tests No Code Attached Yet bug
avatar Fedik
Fedik
14 Feb 2026

Currently it is not possible to run Cypress with DB host different than localhost.
The installation hangs and is not possible to complete..

Cypress need to set JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1 to by pass the DB host check.

$shouldCheckLocalhost = getenv('JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK') !== '1'

avatar Fedik Fedik - open - 14 Feb 2026
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Feb 2026
avatar Fedik Fedik - change - 14 Feb 2026
Labels Added: Unit/System Tests bug
avatar Fedik Fedik - labeled - 14 Feb 2026
avatar Fedik Fedik - labeled - 14 Feb 2026
avatar muhme
muhme - comment - 18 Feb 2026

Just as a hint: In JBT, I am using e.g. jbt-madb as a database host. To run Joomla as well, as the Cypress System Tests, I set the environment variable in the Joomla web server container's Apache configuration:

echo "SetEnv JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK 1" > /etc/apache2/conf-available/joomla-env.conf
avatar Fedik
Fedik - comment - 18 Feb 2026

I just hacked DatabaseHelper.php temporary to be able to run the test 😄
But we need a reliable solution. The error is "very hidden" and make testing harder.
I not sure if a beginner would be able to figure it out to run the test.

Maybe update our tests to handle this situation and removes the random.txt file automatically. Need to check that sometime.

Add a Comment

Login with GitHub to post a comment