Open Journal Systems  3.3.0
MetadataPropertyTest Class Reference
Inheritance diagram for MetadataPropertyTest:
PKPTestCase

Public Member Functions

 testCompositeWithoutParameter ()
 
 testCompositeWithWrongParameter ()
 
 testControlledVocabWithoutParameter ()
 
 testControlledVocabWithWrongParameter ()
 
 testMetadataPropertyConstructor ()
 
 testNonParameterizedTypeWithParameter ()
 
 testSetUnsupportedCardinality ()
 
 testSetUnsupportedType ()
 
 testValidateComposite ()
 
 testValidateControlledVocabulary ()
 
 testValidateDate ()
 
 testValidateInteger ()
 
 testValidateMultitype ()
 
 testValidateString ()
 
 testValidateUri ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Additional Inherited Members

- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 
- 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 MetadataProperty.

See also
MetadataProperty

Definition at line 23 of file MetadataPropertyTest.php.

Member Function Documentation

◆ testCompositeWithoutParameter()

MetadataPropertyTest::testCompositeWithoutParameter ( )

Tests special error conditions while setting composite types

See also
MetadataProperty::__construct

Definition at line 71 of file MetadataPropertyTest.php.

◆ testCompositeWithWrongParameter()

MetadataPropertyTest::testCompositeWithWrongParameter ( )

Tests special error conditions while setting composite types

See also
MetadataProperty::__construct

Definition at line 80 of file MetadataPropertyTest.php.

◆ testControlledVocabWithoutParameter()

MetadataPropertyTest::testControlledVocabWithoutParameter ( )

Tests special error conditions while setting controlled vocab types

See also
MetadataProperty::__construct

Definition at line 89 of file MetadataPropertyTest.php.

◆ testControlledVocabWithWrongParameter()

MetadataPropertyTest::testControlledVocabWithWrongParameter ( )

Tests special error conditions while setting controlled vocab types

See also
MetadataProperty::__construct

Definition at line 98 of file MetadataPropertyTest.php.

◆ testMetadataPropertyConstructor()

◆ testNonParameterizedTypeWithParameter()

MetadataPropertyTest::testNonParameterizedTypeWithParameter ( )

Tests special error conditions while setting non-parameterized type

See also
MetadataProperty::__construct

Definition at line 107 of file MetadataPropertyTest.php.

◆ testSetUnsupportedCardinality()

MetadataPropertyTest::testSetUnsupportedCardinality ( )

Tests special error conditions while setting an unsupported cardinality

See also
MetadataProperty::getSupportedCardinalities

Definition at line 125 of file MetadataPropertyTest.php.

◆ testSetUnsupportedType()

MetadataPropertyTest::testSetUnsupportedType ( )

Tests special error conditions while setting an unsupported type

See also
MetadataProperty::getSupportedTypes

Definition at line 116 of file MetadataPropertyTest.php.

◆ testValidateComposite()

MetadataPropertyTest::testValidateComposite ( )
See also
MetadataProperty::isValid

Definition at line 210 of file MetadataPropertyTest.php.

◆ testValidateControlledVocabulary()

MetadataPropertyTest::testValidateControlledVocabulary ( )
See also
MetadataProperty::isValid

Definition at line 156 of file MetadataPropertyTest.php.

References DAORegistry\getDAO().

◆ testValidateDate()

MetadataPropertyTest::testValidateDate ( )
See also
MetadataProperty::isValid

Definition at line 182 of file MetadataPropertyTest.php.

◆ testValidateInteger()

MetadataPropertyTest::testValidateInteger ( )
See also
MetadataProperty::isValid

Definition at line 199 of file MetadataPropertyTest.php.

◆ testValidateMultitype()

MetadataPropertyTest::testValidateMultitype ( )
See also
MetadataProperty::isValid

Definition at line 232 of file MetadataPropertyTest.php.

◆ testValidateString()

MetadataPropertyTest::testValidateString ( )
See also
MetadataProperty::isValid

Definition at line 133 of file MetadataPropertyTest.php.

◆ testValidateUri()

MetadataPropertyTest::testValidateUri ( )
See also
MetadataProperty::isValid

Definition at line 144 of file MetadataPropertyTest.php.


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