You are here

protected function FeedsMapperTestBase::getFormFieldsNames in Feeds 8.2

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.

3 calls to FeedsMapperTestBase::getFormFieldsNames()
FeedsMapperDateTest::getFormFieldsNames in lib/Drupal/feeds/Tests/FeedsMapperDateTest.php
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>
FeedsMapperLinkTest::getFormFieldsNames in lib/Drupal/feeds/Tests/FeedsMapperLinkTest.php
Override parent::getFormFieldsNames().
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.
2 methods override FeedsMapperTestBase::getFormFieldsNames()
FeedsMapperDateTest::getFormFieldsNames in lib/Drupal/feeds/Tests/FeedsMapperDateTest.php
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>
FeedsMapperLinkTest::getFormFieldsNames in lib/Drupal/feeds/Tests/FeedsMapperLinkTest.php
Override parent::getFormFieldsNames().

File

lib/Drupal/feeds/Tests/FeedsMapperTestBase.php, line 68
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 getFormFieldsNames($field_name, $index) {
  return array(
    "field_{$field_name}[und][{$index}][value]",
  );
}