function RestJsonApiUnsupported::getExpectedUnauthorizedAccessCacheability

Same name in other branches
  1. 8.9.x core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php \Drupal\Tests\jsonapi\Functional\RestJsonApiUnsupported::getExpectedUnauthorizedAccessCacheability()
  2. 10 core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php \Drupal\Tests\jsonapi\Functional\RestJsonApiUnsupported::getExpectedUnauthorizedAccessCacheability()
  3. 11.x core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php \Drupal\Tests\jsonapi\Functional\RestJsonApiUnsupported::getExpectedUnauthorizedAccessCacheability()

Overrides ResourceTestBase::getExpectedUnauthorizedAccessCacheability

File

core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php, line 126

Class

RestJsonApiUnsupported
Ensures that the 'api_json' format is not supported by the REST module.

Namespace

Drupal\Tests\jsonapi\Functional

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.