Php Yii2模块未配置!-选项:configFile是必需的错误-codeception

Php Yii2模块未配置!-选项:configFile是必需的错误-codeception,php,yii2,codeception,Php,Yii2,Codeception,Yii2模块未配置!-选项:配置文件是必需的错误, codeception yii2错误 如何修复错误?我有 suites: unit: # path: . path: common actor: UnitTester modules: enabled: # add more modules here - Asserts

Yii2模块未配置!-选项:配置文件是必需的错误, codeception yii2错误 如何修复错误?我有

suites:
    unit:
        #        path: .
        path: common
        actor: UnitTester
        modules:
            enabled:
                # add more modules here
                - Asserts
                - Yii2
settings:
    shuffle: true
    lint: true
    bootstrap: tests/_bootstrap.php
paths:
    tests: .
    output: common/_output
    support: common/_support
    data: common
modules:
    enabled:
        # add more modules here
        #- Asserts
        - Yii2

我自己分类,因为并没有找到答案。 通用模块项设置必须具有配置形式-子项必须命名为“配置”而不是“启用”,以便能够在其他地方使用,例如套件-单元节/文件,并参考基本Yi2模板提供或生成的配置文件

modules:
  config:
    Yii2:
      configFile: 'config/test.php'
在完整上下文中可见

suites:
    unit:
#        path: .
        path: common
        actor: UnitTester
        modules:
            enabled:
                # add more modules here
                - Asserts
                - Yii2
settings:
    shuffle: true
    lint: true
    bootstrap: tests/_bootstrap.php
paths:
    tests: .
    output: common/_output
    support: common/_support
    data: common
modules:
  config:
    Yii2:
      configFile: 'config/test.php'