protected function FeedsMapperTestCase::getFormFieldsNames in Feeds 7.2
Same name and namespace in other branches
- 6 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.
5 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().
- FeedsMapperNodeSummaryTestCase::getFormFieldsNames in tests/
feeds_mapper_summary.test - Overrides FeedsMapperTestCase::getFormFieldsNames().
- FeedsMapperTestCase::assertNodeFieldValue in tests/
feeds_mapper.test - Assert that a form field for the given field with the given value exists in the current form.
- FeedsMapperTestCase::assertNoNodeFieldValue in tests/
feeds_mapper.test - Assert that a form field for the given field with the given value does not exist in the current form.
3 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().
- FeedsMapperNodeSummaryTestCase::getFormFieldsNames in tests/
feeds_mapper_summary.test - Overrides FeedsMapperTestCase::getFormFieldsNames().
File
- tests/
feeds_mapper.test, line 99 - Contains FeedsMapperTestCase.
Class
- FeedsMapperTestCase
- Helper class with auxiliary functions for feeds mapper module tests.
Code
protected function getFormFieldsNames($field_name, $index) {
return array(
"field_{$field_name}[und][{$index}][value]",
);
}