You are here

public function Select2EntityReferenceWidgetTest::providerTestSingleValueWidget in Select 2 8

Data provider for testSingleValueWidget().

Return value

array The data.

File

tests/src/FunctionalJavascript/FieldWidget/Select2EntityReferenceWidgetTest.php, line 104

Class

Select2EntityReferenceWidgetTest
Tests select2 entity reference widget.

Namespace

Drupal\Tests\select2\FunctionalJavascript\FieldWidget

Code

public function providerTestSingleValueWidget() {
  return [
    [
      TRUE,
      'STARTS_WITH',
      2,
      TRUE,
    ],
    [
      FALSE,
      NULL,
      3,
      TRUE,
    ],
    [
      FALSE,
      NULL,
      2,
      FALSE,
    ],
    [
      TRUE,
      'STARTS_WITH',
      1,
      FALSE,
    ],
    [
      TRUE,
      'CONTAINS',
      2,
      FALSE,
    ],
  ];
}