You are here

public function Select2JavascriptTestBase::setUp in Select 2 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/Select2JavascriptTestBase.php, line 31

Class

Select2JavascriptTestBase
Class Select2JavascriptTestBase.

Namespace

Drupal\Tests\select2\FunctionalJavascript

Code

public function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'test',
  ]);
  $user = $this
    ->drupalCreateUser([
    'access content',
    'edit own test content',
    'create test content',
  ]);
  $this
    ->drupalLogin($user);
}