codeception/doctrine1module
Module for Doctrine 1.x ORM
Maintainers
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 3747140cc8c9cc9b54ee455f033b5916d35b3e9f
- Davert <davert.php.woop@resend.cc>
This package is auto-updated.
Last update: 2026-06-13 13:43:30 UTC
README
Performs DB operations with Doctrine ORM 1.x
Uses active Doctrine connection. If none can be found will fail.
This module cleans all cached data after each test.
Installation
In composer.json
"require-dev": {
"codeception/codeception": "~2.1",
"codeception/doctrine1module": "*"
}
Status
- Maintainer: davert
- Stability: stable
- Contact: codecept@davert.mail.ua
Config
- cleanup: true - all doctrine queries will be run in transaction, which will be rolled back at the end of test.
dontSeeInTable
Checks table doesn't contain row with specified values Provide Doctrine model name and criteria that can be passed to addWhere DQL
Example:
<?php $I->dontSeeInTable('User', array('name' => 'Davert', 'email' => 'davert@mail.com'));
param$modelparam array$values
grabFromTable
Fetches single value from a database. Provide Doctrine model name, desired field, and criteria that can be passed to addWhere DQL
Example:
<?php $mail = $I->grabFromTable('User', 'email', array('name' => 'Davert'));
param$modelparam$columnparam array$values
seeInTable
Checks table contains row with specified values Provide Doctrine model name can be passed to addWhere DQL
Example:
<?php $I->seeInTable('User', array('name' => 'Davert', 'email' => 'davert@mail.com'));
param$modelparam array$values
