protected function OgRoleCacheContextTest::setUp in Organic groups 8
Same name in this branch
- 8 tests/src/Unit/Cache/Context/OgRoleCacheContextTest.php \Drupal\Tests\og\Unit\Cache\Context\OgRoleCacheContextTest::setUp()
- 8 tests/src/Kernel/Cache/Context/OgRoleCacheContextTest.php \Drupal\Tests\og\Kernel\Cache\Context\OgRoleCacheContextTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Cache/ Context/ OgRoleCacheContextTest.php, line 59
Class
- OgRoleCacheContextTest
- Tests the OG role cache context.
Namespace
Drupal\Tests\og\Unit\Cache\ContextCode
protected function setUp() : void {
parent::setUp();
$this->entityTypeManager = $this
->prophesize(EntityTypeManagerInterface::class);
$this->membershipManager = $this
->prophesize(MembershipManagerInterface::class);
$this->database = $this
->prophesize(Connection::class);
$this->privateKey = $this
->prophesize(PrivateKey::class);
}