我第一次尝试设置Codeception,但是当我运行run --debug
时出现数据库连接错误,但我无法找到更改此配置的位置。
vagrant@localhost /var/www/crmpicco (confirmation)$ php vendor/codeception/codeception/codecept run --debug
Codeception PHP Testing Framework v1.9-dev
Powered by PHPUnit 3.7.28 by Sebastian Bergmann.
[Codeception \ Exception \ Module](Db中的异常)SQLSTATE [HY000] [1045]拒绝访问用户' ubuntu' @' localhost' (使用密码: NO)创建PDO连接时
答案 0 :(得分:1)
我最终在以下文件中找到了解决此问题的凭据:
测试/ functional.suite.yml
class_name: TestGuy
modules:
enabled: [REST, Db, ZF1, TestHelper, DbzHelper, GuzzleHelper]
config:
REST:
timeout: 90
Db:
dsn: 'mysql:host=10.0.0.200;dbname=crmpicco_test'
user: 'vagrant'
password: 'vagrant'
dump: tests/_data/dump.sql
populate: true
cleanup: false
ZF1:
env: 'test'
app_path: 'crmpicco/application'
lib_path: 'library'
config: 'crmpicco/application/configs/application.ini'