I do not see a clear way to do this, although I see that it is repeated several times in the documentation, in particular:
Use the yii migration tool to upgrade the test database to the latest version;
found at http://www.yiiframework.com/doc-2.0/guide-test-fixture.html#summary (just to give an example)
What happens is that no matter how I configure _console.php and _config.php in my tests/unit folder, if I run the migration tool, select the main db application:
$ cd tests/unit $ ../../yii migrate/up Yii Migration Tool (based on Yii v2.0.0-dev) No new migration found. Your system is up-to-date.
And yes, the test database is configured correctly (running the tests will cause an error saying that there are no tables). I obviously can create the db structure myself, but it all relates to how this function works as it should.
I am currently using the Basic application installed through the composer.
source share