abstract protected function OgCacheContextTestBase::getCacheContext in Organic groups 8
Returns the instantiated cache context service which is being tested.
Return value
\Drupal\Core\Cache\Context\CacheContextInterface The instantiated cache context service.
3 methods override OgCacheContextTestBase::getCacheContext()
- OgGroupContextCacheContextTest::getCacheContext in tests/
src/ Unit/ Cache/ Context/ OgGroupContextCacheContextTest.php - Returns the instantiated cache context service which is being tested.
- OgMembershipStateCacheContextTest::getCacheContext in tests/
src/ Unit/ Cache/ Context/ OgMembershipStateCacheContextTest.php - Returns the instantiated cache context service which is being tested.
- OgRoleCacheContextTest::getCacheContext in tests/
src/ Unit/ Cache/ Context/ OgRoleCacheContextTest.php - Returns the instantiated cache context service which is being tested.
File
- tests/
src/ Unit/ Cache/ Context/ OgCacheContextTestBase.php, line 20
Class
- OgCacheContextTestBase
- Base class for testing cache context services.
Namespace
Drupal\Tests\og\Unit\Cache\ContextCode
protected abstract function getCacheContext();