aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit-pgsql.xml
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2018-01-29 21:14:03 +0100
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2018-01-29 22:01:40 +0100
commit210c91398da573d3c44bd1ff5bee4c65128c8686 (patch)
treeed2b3779598108f1789b3c37b4be104e79a5c472 /tests/phpunit-pgsql.xml
parent4bf0c9e36a4a89d6b84c6bf8a74124603add9d9e (diff)
downloadvolse-hubzilla-210c91398da573d3c44bd1ff5bee4c65128c8686.tar.gz
volse-hubzilla-210c91398da573d3c44bd1ff5bee4c65128c8686.tar.bz2
volse-hubzilla-210c91398da573d3c44bd1ff5bee4c65128c8686.zip
Make it little bit less likely to erase a real database.
Changed the default PHPUnit database environment variables to make it little bit less likely to truncate accidently a real database.
Diffstat (limited to 'tests/phpunit-pgsql.xml')
-rw-r--r--tests/phpunit-pgsql.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/phpunit-pgsql.xml b/tests/phpunit-pgsql.xml
index d95c4897b..078056d56 100644
--- a/tests/phpunit-pgsql.xml
+++ b/tests/phpunit-pgsql.xml
@@ -33,13 +33,14 @@
<log type="testdox-text" target="./results/testdox.txt"/>
</logging>
<php>
- <!-- default test database config, only used if no environment variables
- with same name set -->
+ <!-- Default test database config, only used if no environment variables
+ with same names are set.
+ !!! Never run against a real database, it will truncate all tables -->
<env name="hz_db_server" value="127.0.0.1"/>
<env name="hz_db_scheme" value="pgsql"/>
<env name="hz_db_port" value="5432"/>
- <env name="hz_db_user" value="hubzilla"/>
+ <env name="hz_db_user" value="travis_hz"/>
<env name="hz_db_pass" value="hubzilla"/>
- <env name="hz_db_database" value="hubzilla"/>
+ <env name="hz_db_database" value="travis_hubzilla"/>
</php>
</phpunit>