Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
FormValidatorCustomTest Class Reference
Inheritance diagram for FormValidatorCustomTest:
PKPTestCase

Public Member Functions

 testIsValid ()
 
 userValidationFunction ($value, $additionalArgument)
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Additional Inherited Members

- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 mockRequest ($path= 'index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath= 'config')
 
 setUp ()
 
 tearDown ()
 

Detailed Description

Test class for FormValidatorCustom.

See Also
FormValidatorCustom

Definition at line 20 of file FormValidatorCustomTest.php.

Member Function Documentation

FormValidatorCustomTest::testIsValid ( )
See Also
FormValidatorCustom
FormValidator

Definition at line 28 of file FormValidatorCustomTest.php.

FormValidatorCustomTest::userValidationFunction (   $value,
  $additionalArgument 
)

This function is used as a custom validation callback for fields. It simply reflects the additional argument so that we can easily manipulate its return value. The value passed in to this method is saved internally for later inspection.

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

Definition at line 69 of file FormValidatorCustomTest.php.


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