CWIS Developer Documentation
|
Public Member Functions | |
testGetandSet () | |
This function exercises the Resource get and set methods for each Metadata types using the fields created in setUpBeforeClass(). More... | |
Static Public Member Functions | |
static | setUpBeforeClass () |
Prior to running any of the tests, this function is run. More... | |
static | tearDownAfterClass () |
After to running the tests, this function is run. More... | |
Static Protected Attributes | |
static | $TestFieldIds |
static | $TestFields |
Definition at line 3 of file Resource--Test.php.
|
static |
Prior to running any of the tests, this function is run.
It creates all of the test Metadata fields and adds them to class variables $TestFieldIds and $TestFields so each function may use them.
Definition at line 14 of file Resource--Test.php.
References MetadataSchema\MDFTYPE_CONTROLLEDNAME, MetadataSchema\MDFTYPE_DATE, MetadataSchema\MDFTYPE_FLAG, MetadataSchema\MDFTYPE_NUMBER, MetadataSchema\MDFTYPE_OPTION, MetadataSchema\MDFTYPE_PARAGRAPH, MetadataSchema\MDFTYPE_REFERENCE, MetadataSchema\MDFTYPE_TEXT, MetadataSchema\MDFTYPE_TIMESTAMP, MetadataSchema\MDFTYPE_TREE, MetadataSchema\MDFTYPE_URL, MetadataSchema\MDFTYPE_USER, and MetadataSchema\SCHEMAID_DEFAULT.
|
static |
After to running the tests, this function is run.
It deletes all of the test Metadata fields.
Definition at line 63 of file Resource--Test.php.
Resource_Test::testGetandSet | ( | ) |
This function exercises the Resource get and set methods for each Metadata types using the fields created in setUpBeforeClass().
Definition at line 85 of file Resource--Test.php.
References Classification\Create(), Resource\Create(), MetadataSchema\MDFTYPE_CONTROLLEDNAME, MetadataSchema\MDFTYPE_DATE, MetadataSchema\MDFTYPE_FLAG, MetadataSchema\MDFTYPE_NUMBER, MetadataSchema\MDFTYPE_OPTION, MetadataSchema\MDFTYPE_PARAGRAPH, MetadataSchema\MDFTYPE_POINT, MetadataSchema\MDFTYPE_REFERENCE, MetadataSchema\MDFTYPE_TEXT, MetadataSchema\MDFTYPE_TIMESTAMP, MetadataSchema\MDFTYPE_TREE, MetadataSchema\MDFTYPE_URL, MetadataSchema\MDFTYPE_USER, and MetadataSchema\SCHEMAID_DEFAULT.
|
staticprotected |
Definition at line 5 of file Resource--Test.php.
|
staticprotected |
Definition at line 6 of file Resource--Test.php.