protected function FeedsMapperTestCase::getFormFieldsNames in Feeds 7
Same name and namespace in other branches
- 6 tests/feeds_mapper.test \FeedsMapperTestCase::getFormFieldsNames()
- 7.2 tests/feeds_mapper.test \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.
3 calls to FeedsMapperTestCase::getFormFieldsNames()
- 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.inc - Assert that a form field for the given CCK field with the given value exists in the current form.
2 methods override FeedsMapperTestCase::getFormFieldsNames()
- 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().
File
- tests/
feeds_mapper_test.inc, line 71 - 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]",
);
}