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

Author: Tomasz Ślązok ([email protected])
Inheritance: extends Codeception\TestCase\Test
Show file Open project: phalcon/incubator

Protected Properties

Property Type Description
$tester UnitTester UnitTester Object
$validation Phalcon\Validation

Public Methods

Method Description
testAlreadyTakenUniquenessWithCustomMessage ( )
testAlreadyTakenUniquenessWithDefaultMessage ( )
testAvailableUniquenessWithDefaultDI ( )
testShouldCatchExceptionWhenValidateUniquenessWithoutColumnOption ( )
testShouldCatchExceptionWhenValidateUniquenessWithoutDbAndDefaultDI ( )
testShouldValidateAvailableUniqueness ( )

Protected Methods

Method Description
_after ( ) executed after each test
_before ( ) executed before each test

Private Methods

Method Description
getDbStub ( )

Method Details

_after() protected method

executed after each test
protected _after ( )

_before() protected method

executed before each test
protected _before ( )

testAlreadyTakenUniquenessWithCustomMessage() public method

testAlreadyTakenUniquenessWithDefaultMessage() public method

testAvailableUniquenessWithDefaultDI() public method

testShouldCatchExceptionWhenValidateUniquenessWithoutColumnOption() public method

testShouldCatchExceptionWhenValidateUniquenessWithoutDbAndDefaultDI() public method

testShouldValidateAvailableUniqueness() public method

Property Details

$tester protected property

UnitTester Object
protected UnitTester $tester
return UnitTester

$validation protected property

protected Validation,Phalcon $validation
return Phalcon\Validation