cedaro / satispress

Expose installed WordPress plugins and themes as Composer packages.
508 stars 51 forks source link

Introduce a testing framework #95

Closed bradyvercher closed 5 years ago

bradyvercher commented 5 years ago

This introduces a testing framework for writing unit and integration tests with PHPUnit. The tests and split into separate suites in phpunit.xml.dist so they can be run independently.

Unit tests use Brain Monkey for mocking WP functions when possible.

Integration tests are based on the WordPress testing suite and require a database to be set up before they can be run. WordPress and its testing suite are managed with Composer as development dependencies.