protected function AjaxPageStateTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php \Drupal\Tests\system\Functional\Render\AjaxPageStateTest::setUp()
- 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\RenderCode
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);
}