Skip to content

Fix test db setup on MySQL/Mariadb + changed default

Renames and updates the create_test_db script to be able to set up the test db for MySQL and Mariadb setups as well as PostgreSQL. Everything is controlled by environment variables, still, with hopefully sensible defaults. See the script source for the details.

Notable changes:

  • The script now can set up MySQL/Mariadb databases as well as PostgreSQL databases.
  • PHPUnit config and UnitTestCase both now defaults to connecting to a local database rather than on a remote host. (This can still be overridden by environment variables as before.)

Merge request reports

Loading