B
B
bizzonaru2016-10-20 16:07:09
Yii
bizzonaru, 2016-10-20 16:07:09

Why doesn't PHPCI see the common models folder in yii2 advanced?

I do build tests. I'm using a db entry check.

$I->seeRecord('common\models\User', ['username' => $user['username']]);

Locally, the tests pass, but on PHPCI, the tests fail at this point. What is the correct way to configure phpci in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bizzonaru, 2016-10-20
@bizzonaru

Yes, tests pass locally and how phpci accesses the same database.

acceptance	Проверка регистрация пользователя	2.884838
Имя: reg
Файл: /tests/acceptance/broker/regCept.php
Сообщение: regCept: Проверка регистрация пользователя Couldn't find common\models\User with {"username":"username_1476969197"} /opt/phpci/PHPCI/build/85_c2847/tests/_support/_generated/AcceptanceTesterActions.php:2306 /opt/phpci/PHPCI/build/85_c2847/tests/acceptance/broker/regCept.php:34

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question