Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bscheshirwork/codeception-yii2-populate
Only restore the dump before each test
https://github.com/bscheshirwork/codeception-yii2-populate
Last synced: about 1 month ago
JSON representation
Only restore the dump before each test
- Host: GitHub
- URL: https://github.com/bscheshirwork/codeception-yii2-populate
- Owner: bscheshirwork
- Created: 2017-01-23T05:04:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-23T08:15:02.000Z (almost 8 years ago)
- Last Synced: 2024-04-10T11:22:35.814Z (9 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# codeception-yii2-populate
This module restore the dump before each test for your `yii2` `acceptance` `test`> Note: Need more? See [bscheshirwork/codeception-db-yii2-config](https://github.com/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:
- ORM
- Fixtures
- \bscheshirwork\Codeception\Module\Yii2Populate:
dump: ../common/tests/_data/dump.sql #relative path from "codeception.yml"
```#Installation
Add to you test environment`composer.json`
```
"require": {
"bscheshirwork/codeception-yii2-populate": "*"
}
```