You are here

protected function FeedsMapperTestCase::getFormFieldsValues in Feeds 7.2

Same name and namespace in other branches
  1. 6 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()
FeedsMapperLinkTestCase::getFormFieldsValues in tests/feeds_mapper_link.test
Override parent::getFormFieldsValues().
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.
1 method overrides FeedsMapperTestCase::getFormFieldsValues()
FeedsMapperLinkTestCase::getFormFieldsValues in tests/feeds_mapper_link.test
Override parent::getFormFieldsValues().

File

tests/feeds_mapper.test, line 114
Contains FeedsMapperTestCase.

Class

FeedsMapperTestCase
Helper class with auxiliary functions for feeds mapper module tests.

Code

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