You are here

protected function UserAccountLinksTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/UserAccountLinksTest.php \Drupal\Tests\user\Functional\UserAccountLinksTest::setUp()
  2. 9 core/modules/user/tests/src/Functional/UserAccountLinksTest.php \Drupal\Tests\user\Functional\UserAccountLinksTest::setUp()

File

core/modules/user/tests/src/Functional/UserAccountLinksTest.php, line 29

Class

UserAccountLinksTest
Tests user-account links.

Namespace

Drupal\Tests\user\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalPlaceBlock('system_menu_block:account', [
    'id' => 'user_account_links_test_system_menu_block_account',
  ]);

  // Make test-page default.
  $this
    ->config('system.site')
    ->set('page.front', '/test-page')
    ->save();
}