public function GroupPermissionCheckerTest::setUp in Group 8
Same name and namespace in other branches
- 2.0.x tests/src/Unit/GroupPermissionCheckerTest.php \Drupal\Tests\group\Unit\GroupPermissionCheckerTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ GroupPermissionCheckerTest.php, line 39
Class
- GroupPermissionCheckerTest
- Tests the group permission checker service.
Namespace
Drupal\Tests\group\UnitCode
public function setUp() {
parent::setUp();
$this->permissionCalculator = $this
->prophesize(ChainGroupPermissionCalculatorInterface::class);
$this->permissionChecker = new GroupPermissionChecker($this->permissionCalculator
->reveal());
}