aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-03-14 12:42:03 +0000
committerMario <mario@mariovavti.com>2024-03-14 12:42:03 +0000
commit39448a08717f20858e6efc80af4dd833645d151d (patch)
treef48ea41670c4c47e606f3895ae5f01f3b250647f /tests/unit
parent0a730935f52ae33bf6132a1ae522e88a37b0f5e6 (diff)
downloadvolse-hubzilla-39448a08717f20858e6efc80af4dd833645d151d.tar.gz
volse-hubzilla-39448a08717f20858e6efc80af4dd833645d151d.tar.bz2
volse-hubzilla-39448a08717f20858e6efc80af4dd833645d151d.zip
Fix test db setup on MySQL/Mariadb + changed default
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/UnitTestCase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php
index 18467d91e..a4ea94b13 100644
--- a/tests/unit/UnitTestCase.php
+++ b/tests/unit/UnitTestCase.php
@@ -77,14 +77,14 @@ class UnitTestCase extends TestCase {
protected function connect_to_test_db() : void {
if ( !\DBA::$dba ) {
\DBA::dba_factory(
- getenv('HZ_TEST_DB_HOST') ?: 'db',
+ getenv('HZ_TEST_DB_HOST') ?: 'localhost',
// Use default port for db type if none specified
getenv('HZ_TEST_DB_PORT'),
getenv('HZ_TEST_DB_USER') ?: 'test_user',
getenv('HZ_TEST_DB_PASS') ?: 'hubzilla',
getenv('HZ_TEST_DB_DATABASE') ?: 'hubzilla_test_db',
- Self::dbtype(getenv('HZ_TEST_DB_TYPE')),
+ self::dbtype(getenv('HZ_TEST_DB_TYPE')),
getenv('HZ_TEST_DB_CHARSET') ?: 'UTF8',
false);