You are here

public function RestExportAuthTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php \Drupal\Tests\rest\Functional\Views\RestExportAuthTest::setUp()

Overrides ViewTestBase::setUp

File

core/modules/rest/tests/src/Functional/Views/RestExportAuthTest.php, line 28

Class

RestExportAuthTest
Tests authentication for REST display.

Namespace

Drupal\Tests\rest\Functional\Views

Code

public function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer views',
  ]));
}