Testing environment setup ¶
Yii 2 has officially maintained integration with
framework that allows you to create the following test types:
- Unit - verifies that a single unit of code is working as expected;
- Functional - verifies scenarios from a user's perspective via browser emulation;
- Acceptance - verifies scenarios from a user's perspective in a browser.
Codeception comes preinstalled with both basic and advanced project templates. In case you are not using one of these templates, Codeception could be installed by issuing the following console commands:
composer require codeception/codeception composer require codeception/specify composer require codeception/verify