I got an Yii2 project which uses a database named frontend, but I would like to run my acceptance tests on a different database named codeception. The problem is when I run the tests it still uses the frontend database instead of the codeception one. Isn't it possible to run the acceptance tests on a different database or am I doing something wrong?
acceptance.suite.yml
class_name: AcceptanceTester
modules:
enabled: [ WebDriver, Db ]
config:
Db:
dsn: 'mysql:host=localhost;dbname=codeception'
user: 'root'
password: ''
dump: _data/dump.sql
populate: true
cleanup: false
WebDriver:
url: 'http://localhost:8080/myproject/frontend/web'
browser: 'firefox'
env:
chrome:
modules:
config:
WebDriver:
browser: 'chrome'
frontend\codeception.yml
namespace: tests\codeception\frontend
actor: Tester
paths:
tests: .
log: _output
data: _data
helpers: _support
settings:
bootstrap: _bootstrap.php
suite_class: \PHPUnit_Framework_TestSuite
colors: true
memory_limit: 1024M
log: true
config:
test_entry_url: http://localhost:8080/myproject/web/index-test.php