iripvanwinkle/codeception-migration

The migration extension for Codeception with Yii2.

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

This package is not auto-updated.

Last update: 2024-09-28 20:20:02 UTC


README

GitHub license Yii2 Codeception

Install

Via Composer

$ composer require iripvanwinkle/codeception-migration

Config

  • configFile required - the path to the application config file. File should be configured for test environment and return configuration array.
  • migrationPath - the path to your migrations folder. May use yii2 alias.
  • migrationNamespaces - list of namespaces containing the migration classes. May corresponds with the autoloading conventions of Yii.
  • entryUrl - initial application url (default: http://localhost/index-test.php).
  • entryScript - front script title (like: index-test.php). If not set - taken from entryUrl.

Usage

You can use this extension by setting params in your 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)>

License

The MIT License (MIT). Please see License File for more information.