You are here

protected function AjaxPageStateTest::setUp in Drupal 10

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php, line 33

Class

AjaxPageStateTest
Performs tests for the effects of the ajax_page_state query parameter.

Namespace

Drupal\Tests\system\Functional\Render

Code

protected function setUp() : void {
  parent::setUp();

  // Create an administrator with all permissions.
  $this->adminUser = $this
    ->drupalCreateUser(array_keys(\Drupal::service('user.permissions')
    ->getPermissions()));

  // Log in so there are more libraries to test for.
  $this
    ->drupalLogin($this->adminUser);
}