You are here

protected function RdfMappingResourceTestBase::getExpectedCacheContexts in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php \Drupal\Tests\rdf\Functional\Rest\RdfMappingResourceTestBase::getExpectedCacheContexts()

The expected cache contexts for the GET/HEAD response of the test entity.

Return value

string[]

Overrides EntityResourceTestBase::getExpectedCacheContexts

See also

::testGet

File

core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php, line 119

Class

RdfMappingResourceTestBase

Namespace

Drupal\Tests\rdf\Functional\Rest

Code

protected function getExpectedCacheContexts() {
  return [
    'user.permissions',
  ];
}