You are here

protected function FeedsMapperTestBase::getFormFieldsValues in Feeds 8.2

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 FeedsMapperTestBase::getFormFieldsValues()
FeedsMapperLinkTest::getFormFieldsValues in lib/Drupal/feeds/Tests/FeedsMapperLinkTest.php
Override parent::getFormFieldsValues().
FeedsMapperTestBase::assertNodeFieldValue in lib/Drupal/feeds/Tests/FeedsMapperTestBase.php
Assert that a form field for the given field with the given value exists in the current form.
1 method overrides FeedsMapperTestBase::getFormFieldsValues()
FeedsMapperLinkTest::getFormFieldsValues in lib/Drupal/feeds/Tests/FeedsMapperLinkTest.php
Override parent::getFormFieldsValues().

File

lib/Drupal/feeds/Tests/FeedsMapperTestBase.php, line 82
Helper class with auxiliary functions for feeds mapper module tests.

Class

FeedsMapperTestBase
Base class for implementing Feeds Mapper test cases.

Namespace

Drupal\feeds\Tests

Code

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