function CacheContextsManagerTest::providerTestInvalidCalculatedContext

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::providerTestInvalidCalculatedContext()
  2. 8.9.x core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::providerTestInvalidCalculatedContext()
  3. 11.x core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::providerTestInvalidCalculatedContext()

Provides a list of invalid 'baz' cache contexts: the parameter is missing.

File

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

Class

CacheContextsManagerTest
@coversDefaultClass \Drupal\Core\Cache\Context\CacheContextsManager[[api-linebreak]] @group Cache

Namespace

Drupal\Tests\Core\Cache\Context

Code

public static function providerTestInvalidCalculatedContext() {
  return [
    [
      'baz',
    ],
    [
      'baz:',
    ],
  ];
}

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