Indeed most of the docs are using basic app structure in examples. For advanced app configs structure is described in http://www.yiiframework.com/doc-2.0/guide-tutorial-advanced-app.html addressing questions about where to put thing X and how configs will be merged for app Y.
I am sorry but documentation on yii2 is not very good,yii team changed lot from yii1 version so people need more help,if you want proof then see what type of issues people asking in forum
in common bootstrap i set Yii::setAlias(‘tests’, dirname(dirname(DIR)) . ‘/common/tests’);
otherwise it doesn’t work
I use advanced app. I use Faker.
in common\tests\unit\templates\ i have a user.php template (return an array of field)
with yii fixture/generate in
common\tests\unit\fixtures\data a user.php file generated through the one in templates.
And it seems great
BUT
when I launch yii fixture/load user i get
Some fixtures were not found under path:
C:\Users\Patrick\Documents\Travail\wamp\www\naturo/common/tests/unit/fixtures
Check that they have correct namespace "tests\unit\fixtures"
1. user
Error: No files were found by name: "user".
Check that files with these name exists, under fixtures path:
"C:\Users\Patrick\Documents\Travail\wamp\www\naturo/common/tests/unit/fixtures".
some mixing between directories and make my head … banging