Answer the question
In order to leave comments, you need to log in
How to test your Yii2 extension?
I'm writing a module extension for Yii2. Created a project in PhpStorm, with the following structure
root
| -components/
| -models/
| - services/
| - tests/
| -Module.php
| - codecept.phar
| - composer.json
i.e. I did not drag all the framework code behind the project, but connected it via include_path in the PhpStorm settings
. I called the php codecept.phar bootstrap command, a folder with tests was created. How can I run the tests now (I wrote several tests for writing / reading from the database using Command \ Query)? Is it really necessary to pull all yii dependencies through "composer install"?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question