Модуль Yii2 не настроен! - Опции: configFile требуются ошибки - кодировка - PullRequest
0 голосов
/ 04 октября 2019

Модуль Yii2 не настроен! - Опции: configFile требуется ошибка, код ошибки 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

1 Ответ

1 голос
/ 04 октября 2019

сортирую по своему, так как не нашел ответа. Настройка элемента общих модулей должна иметь форму конфигурации - этот подпункт должен называться «config», а не «enabled», чтобы его можно было использовать в другом месте, например, в suites - раздел / файл модуля, и обращаться к файлу конфигурации. как предусмотрено или генерируется базовыми шаблонами Yii2

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'

enter image description here

...