diff options
author | Mario <mario@mariovavti.com> | 2024-03-14 12:42:04 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-14 12:42:04 +0000 |
commit | e0de8137007ac849b58ae010704b87e40cdda1bf (patch) | |
tree | c567007cdf262d7d6f29480df4a74de79bcc55e8 /tests/unit | |
parent | 4fb37ef6f393e4eea60c743fb50c9d4a61534b8b (diff) | |
parent | 39448a08717f20858e6efc80af4dd833645d151d (diff) | |
download | volse-hubzilla-e0de8137007ac849b58ae010704b87e40cdda1bf.tar.gz volse-hubzilla-e0de8137007ac849b58ae010704b87e40cdda1bf.tar.bz2 volse-hubzilla-e0de8137007ac849b58ae010704b87e40cdda1bf.zip |
Merge branch 'fix-test-setup-on-mariadb' into 'dev'
Fix test db setup on MySQL/Mariadb + changed default
See merge request hubzilla/core!2112
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/UnitTestCase.php | 4 |
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); |