You are here

protected function OgMembershipStateCacheContextTest::setUp in Organic groups 8

Overrides OgContextCacheContextTestBase::setUp

File

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

Class

OgMembershipStateCacheContextTest
Tests OG membership state cache context.

Namespace

Drupal\Tests\og\Unit\Cache\Context

Code

protected function setUp() : void {
  parent::setUp();
  $this->user = $this
    ->prophesize(AccountInterface::class);
  $this->membership = $this
    ->prophesize(OgMembershipInterface::class);
  $this->membershipManager = $this
    ->prophesize(MembershipManagerInterface::class);
}