You are here

public function CacheContextsManagerTest::providerTestInvalidCalculatedContext in Drupal 8

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()

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

File

core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php, line 133
Contains \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest.

Class

CacheContextsManagerTest
@coversDefaultClass \Drupal\Core\Cache\Context\CacheContextsManager @group Cache

Namespace

Drupal\Tests\Core\Cache\Context

Code

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