bscheshirwork / codeception-yii2-populate
This module restore the dump before each test for your yii2 acceptance test
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bscheshirwork/codeception-yii2-populate
Requires
This package is auto-updated.
Last update: 2025-09-08 09:52:12 UTC
README
This module restore the dump before each test for your yii2
acceptance
test
Note: Need more? See bscheshirwork/codeception-db-yii2-config
Example 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"
#Installation
Add to you test environmentcomposer.json
"require": {
"bscheshirwork/codeception-yii2-populate": "*"
}