You are here

public function IsGroupMemberCacheContextTest::setUp in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/IsGroupMemberCacheContextTest.php \Drupal\Tests\group\Unit\IsGroupMemberCacheContextTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/IsGroupMemberCacheContextTest.php, line 42

Class

IsGroupMemberCacheContextTest
Tests the user.is_group_member:%group_id cache context.

Namespace

Drupal\Tests\group\Unit

Code

public function setUp() {
  parent::setUp();
  $this->currentUser = $this
    ->prophesize(AccountProxyInterface::class)
    ->reveal();
  $this->group = $this
    ->prophesize(GroupInterface::class)
    ->reveal();
}