iripvanwinkle/codeception-migration

Codeception的 Yii2 迁移扩展。

v1.1.0 2017-09-08 10:58 UTC

This package is not auto-updated.

Last update: 2024-09-14 20:14:54 UTC


README

GitHub license Yii2 Codeception

安装

通过Composer

$ composer require iripvanwinkle/codeception-migration

配置

  • configFile 必需 - 应用程序配置文件的路径。文件应为测试环境配置,并返回配置数组。
  • migrationPath - 迁移文件夹的路径。可以使用yii2别名。
  • migrationNamespaces - 包含迁移类的命名空间列表。可能与Yii的自动加载约定相对应。
  • entryUrl - 初始应用程序URL(默认:https:///index-test.php)。
  • entryScript - 前端脚本标题(如:index-test.php)。如果没有设置,则从entryUrl中获取。

使用方法

您可以通过在codeception.yml中设置参数来使用此扩展。

  extensions:
      enabled:
          - Codeception\Extension\Migration
      config:
          Codeception\Extension\Migration:
              configFile: <path to the application config file>
              migrationPath: <path to your migrations (may use yii2 alias)>

许可证

MIT许可证(MIT)。有关更多信息,请参阅许可证文件