protected function AjaxPageStateTest::setUp in Drupal 8
Same name and namespace in other branches
- 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() {
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 with otherwise only html5shiv
// is the only one in the source we can easily test for.
$this
->drupalLogin($this->adminUser);
}