You are here

protected function RangeTestTrait::getWidgetSettings in Range 8

Returns test range widget settings.

Return value

array Range widget settings.

3 calls to RangeTestTrait::getWidgetSettings()
RangeWidgetUiTest::assertTextFieldsWidgetUi in tests/src/Functional/Widget/RangeWidgetUiTest.php
Asserts that widget settings UI works as expected.
WidgetTest::constructRangeFieldXpath in tests/src/Kernel/Widget/WidgetTest.php
Helper: Constructs an XPath for the given range field name.
WidgetTest::testFieldWidget in tests/src/Kernel/Widget/WidgetTest.php
Tests widget.

File

tests/src/Traits/RangeTestTrait.php, line 151

Class

RangeTestTrait
Provides helper methods to test range fields.

Namespace

Drupal\Tests\range\Traits

Code

protected function getWidgetSettings() {
  return [
    'label' => [
      'from' => 'from_label',
      'to' => 'to_label',
    ],
    'placeholder' => [
      'from' => 'from_placeholder',
      'to' => 'to_placeholder',
    ],
  ];
}