private function WidgetTest::getExpectedStepValue in Range 8
Returns expected step value for a number form element.
Return value
string Expected step value.
1 call to WidgetTest::getExpectedStepValue()
- WidgetTest::constructRangeFieldXpath in tests/src/ Kernel/ Widget/ WidgetTest.php 
- Helper: Constructs an XPath for the given range field name.
File
- tests/src/ Kernel/ Widget/ WidgetTest.php, line 130 
Class
- WidgetTest
- Tests field widget.
Namespace
Drupal\Tests\range\Kernel\WidgetCode
private function getExpectedStepValue() {
  switch ($this->fieldType) {
    case 'range_integer':
      return '1';
    case 'range_float':
      return 'any';
    case 'range_decimal':
      return '0.0001';
  }
}