PHPackages                             bscheshirwork/codeception-db-yii2-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bscheshirwork/codeception-db-yii2-config

ActiveLibrary

bscheshirwork/codeception-db-yii2-config
========================================

Connection 'Db' codeception module to 'Yii2' module database settings

v2.0.0(7y ago)050.0k↓31.3%1MITPHP

Since Jan 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bscheshirwork/codeception-db-yii2-config)[ Packagist](https://packagist.org/packages/bscheshirwork/codeception-db-yii2-config)[ RSS](/packages/bscheshirwork-codeception-db-yii2-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

DbYii2Config
============

[](#dbyii2config)

Connection 'Db' codeception module to 'Yii2' codeception module database settings

NO MORE db settings in `codeception.yml`!
-----------------------------------------

[](#no-more-db-settings-in-codeceptionyml)

Delete duplicate settings `dsn`, `username`, `password`, look at this:

Example `backend/codeception.yml`

```
namespace: backend\tests
actor: Tester
paths:
    tests: tests
    log: tests/_output
    data: tests/_data
    support: tests/_support
    envs: tests/_envs
settings:
    bootstrap: _bootstrap.php
    colors: true
    memory_limit: 1024M
extensions:
    enabled:
        - Codeception\Extension\RunFailed
modules:
    config:
        Yii2:
            configFile: 'config/test-local.php'
```

Example `common/config/main-local.php` (included in `backend/config/test-local.php`)

```
