Skip to content

Examples how to unittest routes, pagemodel and custom classes in Kirby 3

License

Notifications You must be signed in to change notification settings

bnomei/kirby3-unittestkit

Repository files navigation

Kirby 3 UnitTest-Kit

Examples how to unittest:

  • Routes
  • Page Models from /site/models or plugins
  • Custom Classes from plugins

Installation Testing

  • clone or download the zip
  • run composer install
  • (optional) install a phpunit plugin for your IDE

Running the tests

Installation Production

  • run composer install --no-dev

Support

Thanks for the coffee Adam! 👍

Disclaimer

This kit is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License Unittestkit

MIT

It is discouraged to use this kit in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

License Kirby 3

This repository is a set of examples for unittesting in Kirby 3. It does not include a free copy of Kirby 3 nor does it make its sourcecode MIT. You still need to buy a license for production servers.