public function OgMembershipStateCacheContextTest::testWithoutContext in Organic groups 8
Tests the result of the cache context service without active context.
@covers ::getContext
Overrides OgContextCacheContextTestBase::testWithoutContext
File
- tests/
src/ Unit/ Cache/ Context/ OgMembershipStateCacheContextTest.php, line 55
Class
- OgMembershipStateCacheContextTest
- Tests OG membership state cache context.
Namespace
Drupal\Tests\og\Unit\Cache\ContextCode
public function testWithoutContext() {
$this
->expectGroupContext();
$result = $this
->getContextResult();
$this
->assertEquals(OgMembershipStateCacheContext::NO_CONTEXT, $result);
}