function FileFieldPathsTestCase::createFileField in File (Field) Paths 7
@inheritdoc
Overrides FileFieldTestCase::createFileField
16 calls to FileFieldPathsTestCase::createFileField()
- FileFieldPathsGeneralTestCase::testAddField in tests/
filefield_paths.general.test - Test that the File (Field) Paths UI works as expected.
- FileFieldPathsGeneralTestCase::testFileUsage in tests/
filefield_paths.general.test - Test a file usage of a basic file upload with File (Field) Paths.
- FileFieldPathsGeneralTestCase::testLongPath in tests/
filefield_paths.general.test - Test File (Field) Paths with a very long path.
- FileFieldPathsGeneralTestCase::testNoFile in tests/
filefield_paths.general.test - Test File (Field) Paths works as normal when no file uploaded.
- FileFieldPathsGeneralTestCase::testProgrammaticAttach in tests/
filefield_paths.general.test - Test File (Field) Paths on a programmatically added file.
File
- tests/
filefield_paths.test, line 44 - Tests for the File (Field) Paths module.
Class
- FileFieldPathsTestCase
- Class FileFieldPathsTestCase
Code
function createFileField($name, $type_name, $field_settings = array(), $instance_settings = array(), $widget_settings = array()) {
parent::createFileField($name, $type_name, $field_settings, $instance_settings, $widget_settings);
$this
->drupalPost("admin/structure/types/manage/{$this->content_type}/fields/{$name}", array(), t('Save settings'));
}