Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bnomei/kirby3-unittestkit

Examples how to unittest routes, pagemodel and custom classes in Kirby 3
https://github.com/bnomei/kirby3-unittestkit

composer demo example kirby3 kirby3-cms php phpinsights phpstan phpunit unittest

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

- `composer analyze` for [phpstan](https://github.com/phpstan/phpstan)
- `composer insights` for [phpinsights](https://phpinsights.com/)
- `composer test` for [phpunit](https://phpunit.de/)

## Installation Production

- run `composer install --no-dev`

## Support

- [make a donation 🍻](https://www.paypal.me/bnomei/5) or
- [buy me ☕](https://buymeacoff.ee/bnomei) or

> 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](https://github.com/bnomei/kirby3-unittestkit/issues/new).

## License Unittestkit

[MIT](https://opensource.org/licenses/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](https://getkirby.com) nor does it make its sourcecode MIT. You still need to [buy a license for production servers](https://getkirby.com/buy).