protected function OgMembershipStateCacheContextTest::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/ OgMembershipStateCacheContextTest.php, line 73
Class
- OgMembershipStateCacheContextTest
- Tests OG membership state cache context.
Namespace
Drupal\Tests\og\Unit\Cache\ContextCode
protected function getCacheContext() {
return new OgMembershipStateCacheContext($this->user
->reveal(), $this->ogContext
->reveal(), $this->membershipManager
->reveal());
}