You are here

abstract protected function OgContextCacheContextTestBase::setupExpectedContext in Organic groups 8

Set up expectations for tests that have an active context object.

Parameters

mixed $context: The test data for the active context, as provided by contextProvider().

See also

::contextProvider()

1 call to OgContextCacheContextTestBase::setupExpectedContext()
OgContextCacheContextTestBase::testWithContext in tests/src/Unit/Cache/Context/OgContextCacheContextTestBase.php
Tests the result of the cache context service with active context objects.
2 methods override OgContextCacheContextTestBase::setupExpectedContext()
OgGroupContextCacheContextTest::setupExpectedContext in tests/src/Unit/Cache/Context/OgGroupContextCacheContextTest.php
Set up expectations for tests that have an active context object.
OgMembershipStateCacheContextTest::setupExpectedContext in tests/src/Unit/Cache/Context/OgMembershipStateCacheContextTest.php
Set up expectations for tests that have an active context object.

File

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

Class

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

Namespace

Drupal\Tests\og\Unit\Cache\Context

Code

protected abstract function setupExpectedContext($context);