You are here

public function CacheContextsManagerTest::testAvailableContextStrings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::testAvailableContextStrings()

File

core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php, line 142
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 testAvailableContextStrings() {
  $cache_contexts_manager = new CacheContextsManager($this
    ->getMockContainer(), $this
    ->getContextsFixture());
  $contexts = $cache_contexts_manager
    ->getAll();
  $this
    ->assertEquals(array(
    "foo",
    "baz",
  ), $contexts);
}