Registry / testing / codeception-module-db

codeception-module-db

JSON →
library3.2.2phppackagistunverified

Database module for Codeception testing framework.

composer require codeception/module-db
INSTALL
IMPORT
SIG · CODECEPTION-MODULE
C
codeception-module-db
testingphpv3.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Db
use Codeception\Module\Db;

Initialize the DB module with a MySQL connection.

use Codeception\Module\Db; $db = new Db(); $db->_setConfig(['dsn' => 'mysql:host=localhost;dbname=test', 'user' => 'root', 'password' => '']); $db->_initialize();
Debug
Known issues
gotchaThe module requires a configured database connection in Codeception suite config.
fix
Add 'Db' module to your suite YAML file with proper credentials.
affects: *
Upgrade
Version history
3.2.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
codeception-module-db — pip install codeception-module-db · libregistry