You are here

protected function FileUploadTest::getExpectedUnauthorizedAccessCacheability in JSON:API 8.2

Returns the expected cacheability for an unauthorized response.

Return value

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

Overrides ResourceTestBase::getExpectedUnauthorizedAccessCacheability

File

tests/src/Functional/FileUploadTest.php, line 829

Class

FileUploadTest
Tests binary data file upload route.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function getExpectedUnauthorizedAccessCacheability() {

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