protected function OgGroupContextCacheContextTest::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.
Overrides OgCacheContextTestBase::getCacheContext
File
- tests/
src/ Unit/ Cache/ Context/ OgGroupContextCacheContextTest.php, line 50
Class
- OgGroupContextCacheContextTest
- Tests the OG group context cache context.
Namespace
Drupal\Tests\og\Unit\Cache\ContextCode
protected function getCacheContext() {
return new OgGroupContextCacheContext($this->ogContext
->reveal());
}