You are here

protected function OgContextCacheContextTestBase::setUp in Organic groups 8

Overrides UnitTestCase::setUp

1 call to OgContextCacheContextTestBase::setUp()
OgMembershipStateCacheContextTest::setUp in tests/src/Unit/Cache/Context/OgMembershipStateCacheContextTest.php
1 method overrides OgContextCacheContextTestBase::setUp()
OgMembershipStateCacheContextTest::setUp in tests/src/Unit/Cache/Context/OgMembershipStateCacheContextTest.php

File

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

Class

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

Namespace

Drupal\Tests\og\Unit\Cache\Context

Code

protected function setUp() : void {
  parent::setUp();
  $this->ogContext = $this
    ->prophesize(OgContextInterface::class);
  $this->group = $this
    ->prophesize(EntityInterface::class);
}