Свойство | Тип | Описание | |
---|---|---|---|
$object | |||
$testFields | Fuel\Validation\RuleInterface[][] | Contains some test fields with rules |
Метод | Описание | |
---|---|---|
runMultipleFieldsData ( ) : array | Provides various data sets to test validation running | |
testAddCoreRuleOverride ( ) | ||
testAddCustomRule ( ) | ||
testAddField ( ) | ||
testAddInvalidField ( ) | ||
testAddMagicRule ( ) | ||
testAddRule ( ) | ||
testBuildWithArrayParameter ( ) | ||
testCreateRuleInstanceFailure ( ) | ||
testCreateRuleInstanceWithGlobalMessage ( ) | ||
testGetField ( ) | ||
testGetFieldFailure ( ) | ||
testGetInvalidFieldRules ( ) | ||
testGetSetGlobalMessage ( ) | ||
testMagicChain ( ) | ||
testMagicRuleInvalid ( ) | ||
testMessageReplacement ( ) | ||
testNestedValidator ( ) | ||
testNestedValidatorFailure ( ) | ||
testRequired ( ) | The required rule was not being run if the data did not contain the required field, resulting in a false positive | |
testRun ( ) | ||
testRunFailure ( ) | ||
testRunField ( ) | ||
testRunFieldFailure ( ) | ||
testRunMultipleFields ( $expected, $data ) | ||
testSetMessage ( ) | ||
testSetMessageException ( ) | ||
testValidateFieldWithEmptyString ( ) |
Метод | Описание | |
---|---|---|
_before ( ) | ||
addTestRules ( ) | Adds sample fields and rules to the validation object |
protected addTestRules ( ) |
public runMultipleFieldsData ( ) : array | ||
Результат | array |
public testCreateRuleInstanceWithGlobalMessage ( ) |
public testRequired ( ) |