You are here

protected function TourResourceTestBase::getExpectedUnauthorizedAccessMessage in Drupal 10

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

File

core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php, line 112

Class

TourResourceTestBase

Namespace

Drupal\Tests\tour\Functional\Rest

Code

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