You are here

protected property NodeTranslationUITest::$defaultCacheContexts in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/NodeTranslationUITest.php \Drupal\Tests\node\Functional\NodeTranslationUITest::defaultCacheContexts

Default cache contexts expected on a non-translated entity.

Cache contexts will not be checked if this list is empty.

Type: string[]

Overrides ContentTranslationUITestBase::$defaultCacheContexts

File

core/modules/node/tests/src/Functional/NodeTranslationUITest.php, line 27

Class

NodeTranslationUITest
Tests the Node Translation UI.

Namespace

Drupal\Tests\node\Functional

Code

protected $defaultCacheContexts = [
  'languages:language_interface',
  'theme',
  'route',
  'timezone',
  'url.path.parent',
  'url.query_args:_wrapper_format',
  'url.site',
  'user.roles',
  'url.path.is_front',
  // These two cache contexts are added by BigPipe.
  'cookies:big_pipe_nojs',
  'session.exists',
];