bscheshirwork/codeception-yii2-populate

此模块在每个测试前恢复你的yii2验收测试的备份

v1.0 2017-01-23 08:06 UTC

This package is auto-updated.

Last update: 2024-09-08 07:23:03 UTC


README

此模块在每个测试前恢复你的yii2 验收 测试的备份

注意:需要更多?请参阅bscheshirwork/codeception-db-yii2-config

示例 backend/tests/acceptance.suite.yml

class_name: AcceptanceTester
modules:
    enabled:
# See docker-codeception-run/docker-compose.yml: "ports" of service "nginx" is null; the selenium service named "firefox"
# See nginx-conf/nginx.conf: listen 80 for frontend; listen 8080 for backend
        - WebDriver:
            url: http://nginx:8080/
            host: firefox
            port: 4444
            browser: firefox
        - Yii2:
            part:
              - email
              - ORM
              - Fixtures
        - \bscheshirwork\Codeception\Module\Yii2Populate:
            dump: ../common/tests/_data/dump.sql #relative path from "codeception.yml"

安装:将以下内容添加到你的测试环境的composer.json

    "require": {
        "bscheshirwork/codeception-yii2-populate": "*"
    }