iripvanwinkle / codeception-migration
The migration extension for Codeception with Yii2.
Installs: 537
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:extension
Requires
- codeception/codeception: ^2.2.5
This package is not auto-updated.
Last update: 2025-01-04 21:52:39 UTC
README
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.