You are here

protected function FileUploadResourceTestBase::getExpectedUnauthorizedAccessCacheability in Drupal 10

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

File

core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php, line 820

Class

FileUploadResourceTestBase
Tests binary data file upload route.

Namespace

Drupal\Tests\rest\Functional

Code

protected function getExpectedUnauthorizedAccessCacheability() {

  // There is cacheability metadata to check as file uploads only allows POST
  // requests, which will not return cacheable responses.
  return new CacheableMetadata();
}