Skip to content

Codeception/Doctrine1Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine1 Module

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

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 $model
  • param 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 $model
  • param $column
  • param 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 $model
  • param array $values

 

Module reference is taken from the source code. Help us to improve documentation. Edit module reference

About

Codeception Module for Doctrine1

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages