function TourTest::getExpectedUnauthorizedAccessMessage

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/TourTest.php \Drupal\Tests\jsonapi\Functional\TourTest::getExpectedUnauthorizedAccessMessage()
  2. 10 core/modules/tour/tests/src/Functional/Jsonapi/TourTest.php \Drupal\Tests\tour\Functional\Jsonapi\TourTest::getExpectedUnauthorizedAccessMessage()
  3. 11.x core/modules/tour/tests/src/Functional/Jsonapi/TourTest.php \Drupal\Tests\tour\Functional\Jsonapi\TourTest::getExpectedUnauthorizedAccessMessage()

Overrides ResourceTestBase::getExpectedUnauthorizedAccessMessage

File

core/modules/jsonapi/tests/src/Functional/TourTest.php, line 143

Class

TourTest
JSON:API integration test for the "Tour" config entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function getExpectedUnauthorizedAccessMessage($method) {
    return "The following permissions are required: 'access tour' OR 'administer site configuration'.";
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.