Skip to content
kumy edited this page Aug 20, 2017 · 1 revision

The example application include a very simple set of tests to show you how you too can test your end points and insure they behave as expected.

The API ships with Codeception, a populate PHP testing framework, and is already configured to perform Acceptance tests.

Refer to tests/acceptance/AllQueriesActiveModelCept.php for a sample test file.
Refer to tests/acceptance.suite.yml for the required configuration to support running tests inside your container.

To run codeception tests, first access your containers command line. You might run this from inside your application directory or refer to the docker documentation for tips executing commands inside your container.

docker exec -it phalconjsonapi_php_1 bash

Then run the following command from /var/www:

vendor/bin/codecept run
Clone this wiki locally