protected function RangeBrowserTestBase::getTestFieldName in Range 8
Returns field name (with "field_" prefix added by Drupal field UI).
Parameters
string $field_type: Range field type. Could be one of the following values: range_integer, range_float or range_decimal.
Return value
string Field name.
4 calls to RangeBrowserTestBase::getTestFieldName()
- RangeBrowserTestBase::createRangeField in tests/
src/ Functional/ RangeBrowserTestBase.php - Creates a range field of a given type.
- RangeFieldUiTest::rangeTestFieldSettings in tests/
src/ Functional/ RangeFieldUiTest.php - Test range field settings.
- RangeFieldUiTest::rangeTestFieldStorageSettings in tests/
src/ Functional/ RangeFieldUiTest.php - Test range field storage settings.
- RangeFieldValidationTest::rangeTestConstraints in tests/
src/ Functional/ RangeFieldValidationTest.php - Tests range field constraints.
File
- tests/
src/ Functional/ RangeBrowserTestBase.php, line 64
Class
- RangeBrowserTestBase
- Base class for the range module's tests.
Namespace
Drupal\Tests\range\FunctionalCode
protected function getTestFieldName($field_type = 'range_integer') {
return 'field_' . $this
->getTestFieldNameRaw($field_type);
}