PHPUnit extension for testing Nette applications.
composer require --dev wavevision/nette-tests
Add callback for creating Nette\Configurator
to bootstrap for tests.
- DI container in tests, allow services injects in tests
- presenter testing
- form submit testing
This testing suite lets you use your presenter classes to resolve :Module:Presenter:action
mapping. This is achieved
using nepada/presenter-mapping extension which is registered in your
tests DIC as presenterMapping
.
If your tested app uses this extension for presenter mapping as well, make sure you register it in your config with the same name.
See this great talk by Jakub Filla to learn basic concepts of this extension.