Add API tests
This commit is contained in:
parent
9bb11ccfa5
commit
3195d6e125
12 changed files with 5342 additions and 15 deletions
18
doc/Tests.md
Normal file
18
doc/Tests.md
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue