1
0
Fork 0

Add API tests

This commit is contained in:
Pierre Rudloff 2018-04-09 21:23:41 +02:00
commit 3195d6e125
12 changed files with 5342 additions and 15 deletions

18
doc/Tests.md Normal file
View file

@ -0,0 +1,18 @@
# Themes
* [Home](help)
You can run unit tests with [PHPUnit](https://phpunit.de/):
```bash
phpunit
```
Some tests require access to a MySQL database.
You can specify the database credentials in environment variables:
```bash
USER=database_user PASS=database_password DB=database_name phpunit
```
**Warning**: This will empty all the tables! Never use this on a production database.