Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bnomei/kirby3-unittestkit
- Owner: bnomei
- License: mit
- Created: 2020-02-24T19:38:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-29T20:49:30.000Z (about 1 year ago)
- Last Synced: 2024-10-04T19:44:41.737Z (3 months ago)
- Topics: composer, demo, example, kirby3, kirby3-cms, php, phpinsights, phpstan, phpunit, unittest
- Language: PHP
- Homepage:
- Size: 126 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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).