function CacheContextsManagerTest::getContextsFixture

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::getContextsFixture()
  2. 9 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::getContextsFixture()
  3. 8.9.x core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::getContextsFixture()
6 calls to CacheContextsManagerTest::getContextsFixture()
CacheContextsManagerTest::testAvailableContextLabels in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::testAvailableContextStrings in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
CacheContextsManagerTest::testConvertTokensToKeys in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
Tests convert tokens to keys.
CacheContextsManagerTest::testInvalidCalculatedContext in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
Tests invalid calculated context.
CacheContextsManagerTest::testInvalidContext in core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
Tests invalid context.

... See full list

File

core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php, line 182

Class

CacheContextsManagerTest
Tests Drupal\Core\Cache\Context\CacheContextsManager.

Namespace

Drupal\Tests\Core\Cache\Context

Code

protected function getContextsFixture() : array {
  return [
    'foo',
    'baz',
  ];
}

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