protected function OgAccessHookTest::setUp in Organic groups 8
Same name in this branch
- 8 tests/src/Unit/OgAccessHookTest.php \Drupal\Tests\og\Unit\OgAccessHookTest::setUp()
- 8 tests/src/Kernel/Access/OgAccessHookTest.php \Drupal\Tests\og\Kernel\Access\OgAccessHookTest::setUp()
Overrides OgAccessEntityTestBase::setUp
File
- tests/
src/ Unit/ OgAccessHookTest.php, line 19
Class
- OgAccessHookTest
- Tests hook implementation of OG related access.
Namespace
Drupal\Tests\og\UnitCode
protected function setUp() : void {
parent::setUp();
// Since this is a unit test, we don't enable the module. However, we test
// a hook implementation inside the module so include the module manually.
include_once __DIR__ . '/../../../og.module';
}