Answer the question
In order to leave comments, you need to log in
Error when accessing AR during functional testing in Yii?
Good afternoon.
I cover some functionality of the developed service with functional tests.
I use Yii 1, OpenServer, phpunit, phpunit-selenium, net beans
Selenium tests are called directly through net beans.
There are two methods in the functional test class.
Each of the methods uses Active Record, for example Users::model()->findByAttributes(...) etc.
If you execute each method separately, then the test passes successfully.
The call to Users::model()->... passes without errors, but when both methods are executed at once, the test is interrupted with an error:
Таблица "{{users}}", упомянутая в записи active record класса "Users", не найдена в базе данных.
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