function UserBlocksTest::setUp
Same name in other branches
- 9 core/modules/user/tests/src/Functional/UserBlocksTest.php \Drupal\Tests\user\Functional\UserBlocksTest::setUp()
- 8.9.x core/modules/user/tests/src/Functional/UserBlocksTest.php \Drupal\Tests\user\Functional\UserBlocksTest::setUp()
- 10 core/modules/user/tests/src/Functional/UserBlocksTest.php \Drupal\Tests\user\Functional\UserBlocksTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ user/ tests/ src/ Functional/ UserBlocksTest.php, line 38
Class
- UserBlocksTest
- Tests user blocks.
Namespace
Drupal\Tests\user\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'administer blocks',
]);
$this->drupalLogin($this->adminUser);
$this->drupalPlaceBlock('user_login_block', [
'id' => 'user_blocks_test_user_login_block',
]);
$this->drupalLogout();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.