public function PathParentCacheContextTest::providerTestGetContext in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php \Drupal\Tests\Core\Cache\Context\PathParentCacheContextTest::providerTestGetContext()
- 10 core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php \Drupal\Tests\Core\Cache\Context\PathParentCacheContextTest::providerTestGetContext()
Provides a list of paths and expected cache contexts.
File
- core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ PathParentCacheContextTest.php, line 32
Class
- PathParentCacheContextTest
- @coversDefaultClass \Drupal\Core\Cache\Context\PathParentCacheContext @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function providerTestGetContext() {
return [
[
'/some/path',
'some',
],
[
'/some/other-path',
'some',
],
[
'/some/other/path',
'some/other',
],
[
'/some/other/path?q=foo&b=bar',
'some/other',
],
[
'/some',
'',
],
[
'/',
'',
],
];
}