function RestJsonApiUnsupportedTest::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/ jsonapi/ tests/ src/ Functional/ RestJsonApiUnsupportedTest.php, line 130
Class
- RestJsonApiUnsupportedTest
- Ensures that the 'api_json' format is not supported by the REST module.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function getExpectedUnauthorizedAccessCacheability() {
return new CacheableMetadata();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.