Answer the question
In order to leave comments, you need to log in
Why do I need a database for tests in Yii2?
I am familiar with testing in Yii2. I download the usual basic template, I try to run the tests, I get
Exception (Database Exception) 'yii\db\Exception' with message 'SQLSTATE[HY000] [1044] Access denied for user 'yii2'@'%' to database 'yii2_basic_tests''
The error occurs both through the console ( codecept run
) and through the web ( index-test.php
). config/test.php
and is incorrectly configured config/db_test.php
. config/db_test.php
? config/db.php
?config/test.php
Answer the question
In order to leave comments, you need to log in
A test database is needed for test manipulations, you won’t delete and add in combat, make sales and issue documents? Or will you? ;) You will not send letters to real addresses?
Test database - base-imitation. Almost like a real one, but with worthless data. Test in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question