Open Journal Systems
3.3.0
|
Public Member Functions | |
testIsArray () | |
testIsValidCheckAllSubfields () | |
testIsValidCheckExplicitSubsubfields () | |
testIsValidNoArray () | |
testIsValidOptionalAndEmpty () | |
testIsValidWithBorderConditions () | |
userFunctionForLocaleFields ($value, $key, $additionalArgument) | |
userFunctionForSubfields ($value, $additionalArgument) | |
Public Member Functions inherited from PKPTestCase | |
getActualOutput () | |
Data Fields | |
$form | |
$localeFieldValidation | |
$subfieldValidation | |
Data Fields inherited from PKPTestCase | |
$mockedRegistryKeys = array() | |
$registryBackup = array() | |
Protected Member Functions | |
setUp () | |
Protected Member Functions inherited from PKPTestCase | |
getMockedDAOs () | |
getMockedRegistryKeys () | |
mockRequest ($path='index/test-page/test-op', $userId=null) | |
setTestConfiguration ($config, $configPath='config') | |
tearDown () | |
Test class for FormValidatorArrayCustom.
Definition at line 20 of file FormValidatorArrayCustomTest.php.
|
protected |
Reimplemented from PKPTestCase.
Definition at line 27 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::testIsArray | ( | ) |
Check explicitly given sub-sub-fields within all sub-fields
Definition at line 231 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::testIsValidCheckAllSubfields | ( | ) |
Check all sub-fields (default behavior of isValid)
Definition at line 86 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::testIsValidCheckExplicitSubsubfields | ( | ) |
Check explicitly given sub-sub-fields within all sub-fields
Definition at line 130 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::testIsValidNoArray | ( | ) |
Definition at line 72 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::testIsValidOptionalAndEmpty | ( | ) |
Definition at line 38 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::testIsValidWithBorderConditions | ( | ) |
Check a few border conditions
Definition at line 194 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::userFunctionForLocaleFields | ( | $value, | |
$key, | |||
$additionalArgument | |||
) |
This function is used as a custom validation callback for two-dimensional data fields. It simply reflects the additional argument so that we can easily manipulate its return value. The keys and values passed in to this method are saved internally for later inspection.
$value | string |
$key | string |
$additionalArgument | boolean |
Definition at line 267 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::userFunctionForSubfields | ( | $value, | |
$additionalArgument | |||
) |
This function is used as a custom validation callback for one-dimensional data fields. It simply reflects the additional argument so that we can easily manipulate its return value. The values passed in to this method are saved internally for later inspection.
$value | string |
$additionalArgument | boolean |
Definition at line 250 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::$form |
Definition at line 23 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::$localeFieldValidation |
Definition at line 25 of file FormValidatorArrayCustomTest.php.
FormValidatorArrayCustomTest::$subfieldValidation |
Definition at line 24 of file FormValidatorArrayCustomTest.php.