You are here

protected function OgMembershipStateCacheContextTest::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().

Overrides OgContextCacheContextTestBase::setupExpectedContext

See also

::contextProvider()

File

tests/src/Unit/Cache/Context/OgMembershipStateCacheContextTest.php, line 65

Class

OgMembershipStateCacheContextTest
Tests OG membership state cache context.

Namespace

Drupal\Tests\og\Unit\Cache\Context

Code

protected function setupExpectedContext($context) {
  $this
    ->expectGroupContext($this->group
    ->reveal());
  $this
    ->expectMembership($context);
}