protected function FeedsMapperTestCase::getFormFieldsNames in Feeds 6
Same name and namespace in other branches
- 7.2 tests/feeds_mapper.test \FeedsMapperTestCase::getFormFieldsNames()
- 7 tests/feeds_mapper_test.inc \FeedsMapperTestCase::getFormFieldsNames()
Returns the form fields names for a given CCK field. Default implementation provides support for a single form field with the following name pattern <code>"field_{$field_name}[{$index}][value]"</code>
Parameters
$field_name: The name of the CCK field.
$index: The index of the field (for q multi-valued field).
Return value
An array of form field names.
4 calls to FeedsMapperTestCase::getFormFieldsNames()
- FeedsMapperContentTaxonomyTestCase::getFormFieldsNames in tests/
feeds_mapper_content_taxonomy.test - Returns the form fields names for a given CCK field. Default implementation provides support for a single form field with the following name pattern <code>"field_{$field_name}[{$index}][value]"</code>
- FeedsMapperDateTestCase::getFormFieldsNames in tests/
feeds_mapper_date.test - Returns the form fields names for a given CCK field. Default implementation provides support for a single form field with the following name pattern <code>"field_{$field_name}[{$index}][value]"</code>
- FeedsMapperLinkTestCase::getFormFieldsNames in tests/
feeds_mapper_link.test - Override parent::getFormFieldsNames().
- FeedsMapperTestCase::assertCCKFieldValue in tests/
feeds_mapper.test - Assert that a form field for the given CCK field with the given value exists in the current form.
5 methods override FeedsMapperTestCase::getFormFieldsNames()
- FeedsMapperContentTaxonomyTestCase::getFormFieldsNames in tests/
feeds_mapper_content_taxonomy.test - Returns the form fields names for a given CCK field. Default implementation provides support for a single form field with the following name pattern <code>"field_{$field_name}[{$index}][value]"</code>
- FeedsMapperDateTestCase::getFormFieldsNames in tests/
feeds_mapper_date.test - Returns the form fields names for a given CCK field. Default implementation provides support for a single form field with the following name pattern <code>"field_{$field_name}[{$index}][value]"</code>
- FeedsMapperEmailTestCase::getFormFieldsNames in tests/
feeds_mapper_email.test - Override parent::getFormFieldsNames().
- FeedsMapperLinkTestCase::getFormFieldsNames in tests/
feeds_mapper_link.test - Override parent::getFormFieldsNames().
- FeedsMapperNodereferenceTestCase::getFormFieldsNames in tests/
feeds_mapper_nodereference.test - Override parent::getFormFieldsNames().
File
- tests/
feeds_mapper.test, line 69 - Helper class with auxiliary functions for feeds mapper module tests.
Class
- FeedsMapperTestCase
- Base class for implementing Feeds Mapper test cases.
Code
protected function getFormFieldsNames($field_name, $index) {
return array(
"field_{$field_name}[{$index}][value]",
);
}