| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 637 lines (29 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
FileFieldTestCase:: (11 methods):
setUp()
getTestFile()
createFileField()
updateFileField()
uploadNodeFile()
removeNodeFile()
replaceNodeFile()
assertFileExists()
assertFileEntryExists()
assertFileNotExists()
assertFileEntryNotExists()
FileFieldRevisionTestCase:: (2 methods):
getInfo()
testRevisions()
FileFieldDisplayTestCase:: (2 methods):
getInfo()
testNodeDisplay()
FileFieldValidateTestCase:: (6 methods):
getInfo()
setUp()
testRequired()
testFileMaxSize()
testNodeMaxSize()
testFileExtension()
FileFieldPathTestCase:: (3 methods):
getInfo()
testUploadPath()
assertPathMatch()
Class: FileFieldTestCase - X-Ref
| setUp() X-Ref |
| Implementation of setUp(). |
| getTestFile($type, $size = NULL) X-Ref |
| Get a sample file of the specified type. |
| createFileField($name, $type, $field_options = array() X-Ref |
| Create a new file field. param: $name param: $type param: $field_options param: $widget_options |
| updateFileField($name, $type, $field_options = array() X-Ref |
| Update an existing FileField with new settings. |
| uploadNodeFile($file, $field, $nid_or_type, $new_revision = TRUE) X-Ref |
| Upload a file to a node. |
| removeNodeFile($nid, $new_revision = TRUE) X-Ref |
| Remove a file from a node. Note that if replacing a file, it must first be removed then added again. |
| replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) X-Ref |
| Replace a file within a node. |
| assertFileExists($file, $message = NULL) X-Ref |
| Assert that a file exists physically on disk. |
| assertFileEntryExists($file, $message = NULL) X-Ref |
| Assert that a file exists in the database. |
| assertFileNotExists($file, $message = NULL) X-Ref |
| Assert that a file does not exist on disk. |
| assertFileEntryNotExists($file, $message) X-Ref |
| Assert that a file does not exist in the database. |
Class: FileFieldRevisionTestCase - X-Ref
Test class to test file handling with node revisions.| getInfo() X-Ref |
| No description |
| testRevisions() X-Ref |
| Test creating multiple revisions of a node and managing the attached files. Expected behaviors: - Adding a new revision will make another entry in the field table, but the original file will not be duplicated. - Deleting a revision should not delete the original file if the file is in use by another revision. - When the last revision that uses a file is deleted, the original file should be deleted also. |
Class: FileFieldDisplayTestCase - X-Ref
Test class to check that formatters are working properly.| getInfo() X-Ref |
| No description |
| testNodeDisplay() X-Ref |
| Test normal formatter display on node display. |
Class: FileFieldValidateTestCase - X-Ref
Test class to check for various validations.| getInfo() X-Ref |
| No description |
| setUp() X-Ref |
| Implementation of setUp(). |
| testRequired() X-Ref |
| Test required property on file fields. |
| testFileMaxSize() X-Ref |
| Test the max file size validator. |
| testNodeMaxSize() X-Ref |
| Test the max file size per node validator. |
| testFileExtension() X-Ref |
| Test the file extension, do additional checks if mimedetect is installed. |
Class: FileFieldPathTestCase - X-Ref
Test class to check that files are uploaded to proper locations.| getInfo() X-Ref |
| No description |
| testUploadPath() X-Ref |
| Test normal formatter display on node display. |
| assertPathMatch($expected_path, $actual_path, $message) X-Ref |
| A loose assertion to check that a file is uploaded to the right location. param: $expected_path param: $actual_path param: $message |
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |