PHP Class Phalcon\Test\Unit\ValidationTest

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

Protected Properties

Property Type Description
$validation Phalcon\Validation

Public Methods

Method Description
testFilteringEntity ( ) Tests that filters in validation will correctly filter entity values
testGetDefaultValidationMessageShouldReturnEmptyStringIfNoneIsSet ( )
testValidationFiltering ( )
testValidationSetLabels ( )
testWithEntityAndFilter ( ) Tests validate method with entity and filters

Protected Methods

Method Description
_before ( ) executed before each test

Method Details

_before() protected method

executed before each test
protected _before ( )

testFilteringEntity() public method

Tests that filters in validation will correctly filter entity values
Since: 2016-09-26
Author: Wojciech Ślawski ([email protected])
public testFilteringEntity ( )

testGetDefaultValidationMessageShouldReturnEmptyStringIfNoneIsSet() public method

testValidationFiltering() public method

testValidationSetLabels() public method

testWithEntityAndFilter() public method

Tests validate method with entity and filters
Since: 2016-09-26
Author: Wojciech Ślawski ([email protected])

Property Details

$validation protected property

protected Validation,Phalcon $validation
return Phalcon\Validation