You are here

protected function ViewResourceTestBase::setUpAuthorization in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Rest/ViewResourceTestBase.php \Drupal\Tests\views\Functional\Rest\ViewResourceTestBase::setUpAuthorization()
  2. 9 core/modules/views/tests/src/Functional/Rest/ViewResourceTestBase.php \Drupal\Tests\views\Functional\Rest\ViewResourceTestBase::setUpAuthorization()

File

core/modules/views/tests/src/Functional/Rest/ViewResourceTestBase.php, line 28

Class

ViewResourceTestBase

Namespace

Drupal\Tests\views\Functional\Rest

Code

protected function setUpAuthorization($method) {
  $this
    ->grantPermissionsToTestedRole([
    'administer views',
  ]);
}