wavevision/nette-tests

PHPUnit extension for testing Nette applications.

3.2.0 2021-04-16 19:26 UTC

README

Wavevision s.r.o.

Nette Tests

CI Coverage Status PHPStan

PHPUnit extension for testing Nette applications.

Install

composer require --dev wavevision/nette-tests

Configuration

Add callback for creating Nette\Configurator to bootstrap for tests.

Features

Presenter mapping

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.

Learn

See this great talk by Jakub Filla to learn basic concepts of this extension.