public function CacheContextsManagerTest::testAvailableContextLabels in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::testAvailableContextLabels()
File
- core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ CacheContextsManagerTest.php, line 148 - Contains \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest.
Class
- CacheContextsManagerTest
- @coversDefaultClass \Drupal\Core\Cache\Context\CacheContextsManager @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function testAvailableContextLabels() {
$container = $this
->getMockContainer();
$cache_contexts_manager = new CacheContextsManager($container, $this
->getContextsFixture());
$labels = $cache_contexts_manager
->getLabels();
$expected = array(
"foo" => "Foo",
);
$this
->assertEquals($expected, $labels);
}