You are here

protected function FeedsMapperTestCase::getFormFieldsValues in Feeds 7

Same name and namespace in other branches
  1. 6 tests/feeds_mapper.test \FeedsMapperTestCase::getFormFieldsValues()
  2. 7.2 tests/feeds_mapper.test \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.

2 calls to FeedsMapperTestCase::getFormFieldsValues()
FeedsMapperLinkTestCase::getFormFieldsValues in tests/feeds_mapper_link.test
Override parent::getFormFieldsValues().
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.
1 method overrides FeedsMapperTestCase::getFormFieldsValues()
FeedsMapperLinkTestCase::getFormFieldsValues in tests/feeds_mapper_link.test
Override parent::getFormFieldsValues().

File

tests/feeds_mapper_test.inc, line 85
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,
  );
}