function IsFrontPathCacheContextTest::testGetContextFront
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php \Drupal\Tests\Core\Cache\Context\IsFrontPathCacheContextTest::testGetContextFront()
- 8.9.x core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php \Drupal\Tests\Core\Cache\Context\IsFrontPathCacheContextTest::testGetContextFront()
- 10 core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php \Drupal\Tests\Core\Cache\Context\IsFrontPathCacheContextTest::testGetContextFront()
@covers ::getContext
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ IsFrontPathCacheContextTest.php, line 20
Class
- IsFrontPathCacheContextTest
- @coversDefaultClass \Drupal\Core\Cache\Context\IsFrontPathCacheContext @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function testGetContextFront() : void {
$cache_context = new IsFrontPathCacheContext($this->createPathMatcher(TRUE)
->reveal());
$this->assertSame('is_front.1', $cache_context->getContext());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.