You are here

protected function LayoutRestTestBase::getExpectedUnauthorizedAccessCacheability in Drupal 10

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

Returns the expected cacheability of an unauthorized access response.

Return value

\Drupal\Core\Cache\RefinableCacheableDependencyInterface The expected cacheability.

Overrides ResourceTestBase::getExpectedUnauthorizedAccessCacheability

File

core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php, line 130

Class

LayoutRestTestBase
Base class for Layout Builder REST tests.

Namespace

Drupal\Tests\layout_builder\Functional\Rest

Code

protected function getExpectedUnauthorizedAccessCacheability() {
  return new CacheableMetadata();
}