protected function GroupTest::setUp in farmOS 2.x
Same name in this branch
- 2.x modules/asset/group/tests/src/Functional/GroupTest.php \Drupal\Tests\farm_group\Functional\GroupTest::setUp()
- 2.x modules/asset/group/tests/src/Kernel/GroupTest.php \Drupal\Tests\farm_group\Kernel\GroupTest::setUp()
Overrides BrowserTestBase::setUp
File
- modules/
asset/ group/ tests/ src/ Functional/ GroupTest.php, line 36
Class
- GroupTest
- Tests for farmOS group membership logic.
Namespace
Drupal\Tests\farm_group\FunctionalCode
protected function setUp() : void {
$GLOBALS['farm_test'] = TRUE;
parent::setUp();
// Create and login a user with permission to administer logs.
$user = $this
->createUser([
'administer log',
]);
$this
->drupalLogin($user);
}