Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
FormValidatorArrayCustomTest Class Reference
Inheritance diagram for FormValidatorArrayCustomTest:
PKPTestCase

Public Member Functions

 testIsArray ()
 
 testIsValidCheckAllSubfields ()
 
 testIsValidCheckExplicitSubsubfields ()
 
 testIsValidNoArray ()
 
 testIsValidOptionalAndEmpty ()
 
 testIsValidWithBorderConditions ()
 
 userFunctionForLocaleFields ($value, $key, $additionalArgument)
 
 userFunctionForSubfields ($value, $additionalArgument)
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Additional Inherited Members

- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 setTestConfiguration ($config, $configPath= 'config')
 
 setUp ()
 
 tearDown ()
 

Detailed Description

Test class for FormValidatorArrayCustom.

See Also
FormValidatorArrayCustom

Definition at line 20 of file FormValidatorArrayCustomTest.php.

Member Function Documentation

FormValidatorArrayCustomTest::testIsArray ( )

Check explicitly given sub-sub-fields within all sub-fields FormValidatorArrayCustom::isArray

Definition at line 231 of file FormValidatorArrayCustomTest.php.

FormValidatorArrayCustomTest::testIsValidCheckAllSubfields ( )

Check all sub-fields (default behavior of isValid) FormValidatorArrayCustom FormValidator

Definition at line 86 of file FormValidatorArrayCustomTest.php.

FormValidatorArrayCustomTest::testIsValidCheckExplicitSubsubfields ( )

Check explicitly given sub-sub-fields within all sub-fields FormValidatorArrayCustom FormValidator

Definition at line 130 of file FormValidatorArrayCustomTest.php.

FormValidatorArrayCustomTest::testIsValidNoArray ( )
FormValidatorArrayCustomTest::testIsValidOptionalAndEmpty ( )
FormValidatorArrayCustomTest::testIsValidWithBorderConditions ( )

Check a few border conditions FormValidatorArrayCustom FormValidator

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.

Parameters
$valuestring
$keystring
$additionalArgumentboolean
Returns
boolean the value passed in to $additionalArgument

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.

Parameters
$valuestring
$additionalArgumentboolean
Returns
boolean the value passed in to $additionalArgument

Definition at line 250 of file FormValidatorArrayCustomTest.php.


The documentation for this class was generated from the following file: