You are here

public function ListTest::setUp in Select (or other) 8

Same name and namespace in other branches
  1. 4.x tests/src/Functional/ListTest.php \Drupal\Tests\select_or_other\Functional\ListTest::setUp()

Overrides TestBase::setUp

File

tests/src/Functional/ListTest.php, line 20

Class

ListTest
Tests the the functionality of the Reference widget.

Namespace

Drupal\Tests\select_or_other\Functional

Code

public function setUp() {
  parent::setUp();
  $field_settings = [];
  $widget = 'select_or_other_list';
  $widgets = [
    'select_or_other_select',
    'select_or_other_buttons',
  ];
  $this
    ->prepareTestFields('list_string', $field_settings, $widget, $widgets);
  $user = $this
    ->drupalCreateUser($this->defaultPermissions);
  $this
    ->drupalLogin($user);
}