CWIS Developer Documentation

- Home
- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
Resource_Test Class Reference
Inheritance diagram for Resource_Test:
[legend]
Collaboration diagram for Resource_Test:
[legend]

## Public Member Functions
| testGetSetClear ()
| 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

## Detailed Description

Definition at line 3 of file Resource--Test.php.

## Member Function Documentation

static Resource_Test::setUpBeforeClass | ( |  | ) |
| 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 Resource_Test::tearDownAfterClass | ( |  | ) |
| 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::testGetSetClear | ( |  | ) |

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 ControlledName\Create(), Classification\Create(), Resource\Create(), Resource\Delete(), Resource\Get(), StdLib\GetConstantName(), 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.

## Member Data Documentation

Resource_Test::$TestFieldIds
| staticprotected

Definition at line 5 of file Resource--Test.php.

Resource_Test::$TestFields
| staticprotected

Definition at line 6 of file Resource--Test.php.

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

- objects/tests/Resource--Test.php