function AjaxMaintenanceModeTest::setUp

Same name in other branches
  1. 11.x core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxMaintenanceModeTest.php \Drupal\FunctionalJavascriptTests\Ajax\AjaxMaintenanceModeTest::setUp()

Overrides BrowserTestBase::setUp

File

core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxMaintenanceModeTest.php, line 43

Class

AjaxMaintenanceModeTest
Tests maintenance message during an AJAX call.

Namespace

Drupal\FunctionalJavascriptTests\Ajax

Code

protected function setUp() : void {
    parent::setUp();
    $this->adminUser = $this->drupalCreateUser([
        'access administration pages',
        'administer site configuration',
        'access site in maintenance mode',
    ]);
    $this->drupalLogin($this->adminUser);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.