Skip to content

iRipVanWinkle/codeception-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The migration extension for Codeception (Yii2)

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.