You are here

protected function FeedsMapperTestCase::getFormFieldsValues in Feeds 6

Same name and namespace in other branches
  1. 7.2 tests/feeds_mapper.test \FeedsMapperTestCase::getFormFieldsValues()
  2. 7 tests/feeds_mapper_test.inc \FeedsMapperTestCase::getFormFieldsValues()

Returns the form fields values for a given CCK field. Default implementation returns a single element array with $value casted to a string.

Parameters

$field_name: The name of the CCK field.

$value: The (raw) value expected for the CCK field.

Return value

An array of form field values.

3 calls to FeedsMapperTestCase::getFormFieldsValues()
FeedsMapperContentTaxonomyTestCase::getFormFieldsValues in tests/feeds_mapper_content_taxonomy.test
Returns the form fields values for a given CCK field. Default implementation returns a single element array with $value casted to a string.
FeedsMapperLinkTestCase::getFormFieldsValues in tests/feeds_mapper_link.test
Override parent::getFormFieldsValues().
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.
2 methods override FeedsMapperTestCase::getFormFieldsValues()
FeedsMapperContentTaxonomyTestCase::getFormFieldsValues in tests/feeds_mapper_content_taxonomy.test
Returns the form fields values for a given CCK field. Default implementation returns a single element array with $value casted to a string.
FeedsMapperLinkTestCase::getFormFieldsValues in tests/feeds_mapper_link.test
Override parent::getFormFieldsValues().

File

tests/feeds_mapper.test, line 83
Helper class with auxiliary functions for feeds mapper module tests.

Class

FeedsMapperTestCase
Base class for implementing Feeds Mapper test cases.

Code

protected function getFormFieldsValues($field_name, $value) {
  return array(
    (string) $value,
  );
}