dc-rest/unit-tests
2017-06-20 19:40:56 +02:00
..
README.md bitbucket -> github 2017-06-20 19:40:56 +02:00
test-API.php bitbucket -> github 2017-06-20 19:40:56 +02:00

#Unit tests

Change the parameters at the beginning of test-API.php and use it in console mode

php test-API.php

This will test all the API methods. Use this tests only on a developpement platform of Dotclear.

These tests are for the developer (me). I'm tired of systematically retest everything as I progress in development. Incidentally, they also serve as an example on the use of the API.