You are here

public function CacheContextsTest::test_getAll in Render cache 7.2

Tests that CacheContexts::getAll() is working properly. @covers ::__construct() @covers ::getAll()

File

tests/src/Cache/CacheContextsTest.php, line 52
Contains \Drupal\render_cache\Tests\Cache\CacheContextsTest

Class

CacheContextsTest
@coversDefaultClass \Drupal\render_cache\Cache\CacheContexts @group cache

Namespace

Drupal\render_cache\Tests\Cache

Code

public function test_getAll() {
  $this
    ->assertEquals(array(
    'cache_context.foo',
  ), $this->cacheContexts
    ->getAll(), 'Cache Contexts service contains the right services.');
}