2017 © Pedro Peláez
 

library doctrine1module

Module for Doctrine 1.x ORM

image

codeception/doctrine1module

Module for Doctrine 1.x ORM

  • Friday, May 1, 2015
  • by davert
  • Repository
  • 3 Watchers
  • 0 Stars
  • 11,347 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

Doctrine1 Module

Performs DB operations with Doctrine ORM 1.x, (*1)

Uses active Doctrine connection. If none can be found will fail., (*2)

This module cleans all cached data after each test., (*3)

Installation

In composer.json, (*4)

"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, (*5)

Example:, (*6)

``` php <?php $I->dontSeeInTable('User', array('name' => 'Davert', 'email' => 'davert@mail.com'));, (*7)


* `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 <?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, (*8)

Example:, (*9)

``` php <?php $I->seeInTable('User', array('name' => 'Davert', 'email' => 'davert@mail.com'));, (*10)

```, (*11)

  • param $model
  • param array $values

 , (*12)

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

The Versions

01/05 2015

dev-master

9999999-dev

Module for Doctrine 1.x ORM

  Sources   Download

MIT

by Avatar davert

01/05 2015

1.0.0

1.0.0.0

Module for Doctrine 1.x ORM

  Sources   Download

MIT

by Avatar davert