承接 codeception/doctrine1module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codeception/doctrine1module

最新稳定版本:1.0.0

Composer 安装命令:

composer require codeception/doctrine1module

包简介

Module for Doctrine 1.x ORM

README 文档

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

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

统计信息

  • 总下载量: 95.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-30