Db не конфигурируется, хотя конфигурация есть
Добавлено: 2019.06.28, 06:25
Когда пытаюсь запустить тест в PHPStorm, выводит:
In Module.php line 152:
Db module is not configured!
Options: dsn, user, password are required
Please, update the configuration and set all the required fields
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite> [<test>]]
codeception.yml(указан как конфиг):
namespace: blog\tests
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
modules:
enabled:
- Db
config:
- Yii2:
configFile: '../common/config/test-local.php'
- Db:
- dsn: 'mysql:host=localhost;dbname=meteo_test'
- user: 'root'
- password: ''
В PHPStorm к БД подключился, если что
In Module.php line 152:
Db module is not configured!
Options: dsn, user, password are required
Please, update the configuration and set all the required fields
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite> [<test>]]
codeception.yml(указан как конфиг):
namespace: blog\tests
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
modules:
enabled:
- Db
config:
- Yii2:
configFile: '../common/config/test-local.php'
- Db:
- dsn: 'mysql:host=localhost;dbname=meteo_test'
- user: 'root'
- password: ''
В PHPStorm к БД подключился, если что