You are here

protected function RangeBaseWebTestCase::getTestFieldName in Range 7

Returns field name (with "field_" prefix added by Drupal field UI).

Parameters

string $field_type: Range field type. Possible values:

  • range_decimal
  • range_float
  • range_integer

Return value

string Field name.

14 calls to RangeBaseWebTestCase::getTestFieldName()
RangeBaseWebTestCase::createTestNode in tests/range.base.test
Creates a test node and sets values for a given range field type.
RangeBaseWebTestCase::createTestRangeField in tests/range.base.test
Creates a range field of a given type.
RangeBaseWebTestCase::deleteTestRangeField in tests/range.base.test
Deletes previously created range field of a given type.
RangeFieldUIWebTestCase::_testRangeFieldFormatterSettingsUI in tests/range.field_ui.test
Helper method. Sets range field formatter settings via field UI.
RangeFieldUIWebTestCase::_testRangeFieldInstanceSettingsUI in tests/range.field_ui.test
Helper method. Sets range field instance settings via field UI.

... See full list

File

tests/range.base.test, line 92
Contains range base test classes.

Class

RangeBaseWebTestCase
Base class for the range module's tests.

Code

protected function getTestFieldName($field_type = 'range_integer') {
  return 'field_' . $this
    ->getTestFieldNameRaw($field_type);
}