You are here

abstract public function OgContextCacheContextTestBase::testWithoutContext in Organic groups 8

Tests the result of the cache context service without active context.

@covers ::getContext

2 methods override OgContextCacheContextTestBase::testWithoutContext()
OgGroupContextCacheContextTest::testWithoutContext in tests/src/Unit/Cache/Context/OgGroupContextCacheContextTest.php
Tests getting cache context when there is no matching group on the route.
OgMembershipStateCacheContextTest::testWithoutContext in tests/src/Unit/Cache/Context/OgMembershipStateCacheContextTest.php
Tests the result of the cache context service without active context.

File

tests/src/Unit/Cache/Context/OgContextCacheContextTestBase.php, line 73

Class

OgContextCacheContextTestBase
Base class for testing cache contexts that rely on OgContext.

Namespace

Drupal\Tests\og\Unit\Cache\Context

Code

public abstract function testWithoutContext();