protected function FileUploadResourceTestBase::getExpectedUnauthorizedAccessCacheability in Drupal 9
Same name and namespace in other branches
- 8 core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php \Drupal\Tests\rest\Functional\FileUploadResourceTestBase::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/ rest/ tests/ src/ Functional/ FileUploadResourceTestBase.php, line 819
Class
- FileUploadResourceTestBase
- Tests binary data file upload route.
Namespace
Drupal\Tests\rest\FunctionalCode
protected function getExpectedUnauthorizedAccessCacheability() {
// There is cacheability metadata to check as file uploads only allows POST
// requests, which will not return cacheable responses.
}