PHP Class Phalcon\Test\Unit\Validation\Validator\UniquenessTest

Author: Andres Gutierrez ([email protected])
Author: Nikolaos Dimopoulos ([email protected])
Author: Wojciech Ślawski ([email protected])
Author: Bas Stottelaar ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Show file Open project: phalcon/cphalcon

Protected Properties

Property Type Description
$anotherRobot Phalcon\Test\Models\Robots
$deletedRobot Phalcon\Test\Models\Robots
$di Phalcon\Di
$robot Phalcon\Test\Models\Robots

Public Methods

Method Description
testConvertArrayReturnsArray ( ) Tests value conversion for returning an array.
testExceptMultipleFieldMultipleExcept ( ) Tests uniqueness validator with multiple field and except
testExceptMultipleFieldSingleExcept ( ) Tests uniqueness validator with multiple field and single except
testExceptSingleFieldMultipleExcept ( ) Tests uniqueness validator with single field and multiple except
testExceptSingleFieldSingleExcept ( ) Tests uniqueness validator with single field and except
testMultipleFields ( ) Tests uniqueness validator with multiple fields
testMultipleFieldsConvert ( ) Tests uniqueness validator with multiple fields and a converted value
testMultipleFieldsWithNull ( ) Tests uniqueness validator with multiple fields and a null value
testSingleField ( ) Tests uniqueness validator with single fields
testSingleFieldConvert ( ) Tests uniqueness validator with single fields and a converted value
testSingleFieldWithNull ( ) Tests uniqueness validator with single field and a null value

Protected Methods

Method Description
_before ( ) Initialize data for the tests

Method Details

_before() protected method

Initialize data for the tests
protected _before ( )

testConvertArrayReturnsArray() public method

Tests value conversion for returning an array.
Since: 2016-07-25
Author: Bas Stottelaar ([email protected])

testExceptMultipleFieldMultipleExcept() public method

Tests uniqueness validator with multiple field and except
Since: 2016-06-05
Author: Wojciech Ślawski ([email protected])

testExceptMultipleFieldSingleExcept() public method

Tests uniqueness validator with multiple field and single except
Since: 2016-06-05
Author: Wojciech Ślawski ([email protected])

testExceptSingleFieldMultipleExcept() public method

Tests uniqueness validator with single field and multiple except
Since: 2016-06-05
Author: Wojciech Ślawski ([email protected])

testExceptSingleFieldSingleExcept() public method

Tests uniqueness validator with single field and except
Since: 2016-06-05
Author: Wojciech Ślawski ([email protected])

testMultipleFields() public method

Tests uniqueness validator with multiple fields
Since: 2016-06-05
Author: Wojciech Ślawski ([email protected])
public testMultipleFields ( )

testMultipleFieldsConvert() public method

Tests uniqueness validator with multiple fields and a converted value
Since: 2016-07-25
Author: Bas Stottelaar ([email protected])

testMultipleFieldsWithNull() public method

Tests uniqueness validator with multiple fields and a null value
Since: 2016-07-13
Author: Bas Stottelaar ([email protected])

testSingleField() public method

Tests uniqueness validator with single fields
Since: 2016-06-05
Author: Wojciech Ślawski ([email protected])
public testSingleField ( )

testSingleFieldConvert() public method

Tests uniqueness validator with single fields and a converted value
Since: 2016-07-25
Author: Bas Stottelaar ([email protected])

testSingleFieldWithNull() public method

Tests uniqueness validator with single field and a null value
Since: 2016-07-13
Author: Bas Stottelaar ([email protected])

Property Details

$anotherRobot protected property

protected Robots,Phalcon\Test\Models $anotherRobot
return Phalcon\Test\Models\Robots

$deletedRobot protected property

protected Robots,Phalcon\Test\Models $deletedRobot
return Phalcon\Test\Models\Robots

$di protected property

protected Di,Phalcon $di
return Phalcon\Di

$robot protected property

protected Robots,Phalcon\Test\Models $robot
return Phalcon\Test\Models\Robots