Unit test fails

Hi,

I installed Yii Advanced application (still nothing changed in the code). I set DB configs, ran migration - everything OK. Then I downloaded codecept.phar and installed verify and specify libraries via composer. But when I run "php codecept.phar run", I get error: [yii\base\InvalidConfigException] Table does not exist: {{%user}}.

When I try the same on Basic application, everything works. There is the problem?

Thanks!

Have you run the migration on database for tests as well?

The database for test differs from the main database. It’s configured in tests\codeception\config\config.php. Make sure that table user is in this database as well.

Thanks, dude! It works now. :)