PHP Class Phalcon\Test\Unit\Mvc\Model\Query\BuilderTest

Author: Andres Gutierrez ([email protected])
Author: Serghei Iakovlev ([email protected])
Author: Wojciech Ĺšlawski ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Show file Open project: phalcon/cphalcon

Public Methods

Method Description
testAction ( )
testConstructor ( ) Test checks passing query params and dependency injector into constructor
testConstructorConditions ( ) Test checks passing 'condition' query param into constructor.
testConstructorLimit ( ) Test checks passing 'limit'/'offset' query param into constructor.
testGroup ( )
testIssue1115 ( )
testIssue701 ( )
testSelectDistinctAll ( )

Protected Methods

Method Description
_before ( )

Method Details

_before() protected method

protected _before ( )

testAction() public method

public testAction ( )

testConstructor() public method

Test checks passing query params and dependency injector into constructor
public testConstructor ( )

testConstructorConditions() public method

Conditions can now be passed as an string(as before) and as an array of 3 elements: - condition string for example "age > :age: AND created > :created:" - bind params for example array('age' => 18, 'created' => '2013-09-01') - bind types for example array('age' => PDO::PARAM_INT, 'created' => PDO::PARAM_STR) First two params are REQUIRED, bind types are optional.

testConstructorLimit() public method

limit key can take: - single numeric value - array of 2 values (limit, offset)

testGroup() public method

public testGroup ( )

testIssue1115() public method

public testIssue1115 ( )

testIssue701() public method

public testIssue701 ( )

testSelectDistinctAll() public method