function SuperUserAccessInstallTest::setUpSite

Same name in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php \Drupal\FunctionalTests\Installer\SuperUserAccessInstallTest::setUpSite()

Overrides InstallerTestBase::setUpSite

File

core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php, line 59

Class

SuperUserAccessInstallTest
Tests superuser access and the installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpSite() {
    if ($this->getProvidedData()['super_user_policy'] === FALSE && empty($this->getProvidedData()['expected_roles'])) {
        $this->assertSession()
            ->pageTextContains('Site account');
        $this->assertSession()
            ->pageTextNotContains('Site maintenance account');
    }
    else {
        $this->assertSession()
            ->pageTextNotContains('Site account');
        $this->assertSession()
            ->pageTextContains('Site maintenance account');
    }
    parent::setUpSite();
}

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