You are here

protected function RestUITest::setUp in REST UI 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/RestUITest.php, line 28

Class

RestUITest
Tests Rest UI functionality.

Namespace

Drupal\Tests\restui\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();

  // Create a user with permissions to manage.
  $permissions = [
    'administer site configuration',
    'administer rest resources',
  ];
  $account = $this
    ->drupalCreateUser($permissions);

  // Initiate user session.
  $this
    ->drupalLogin($account);
}