function InstallerSiteConfigProfileTest::setUpSite

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::setUpSite()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::setUpSite()
  3. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::setUpSite()

Overrides InstallerTestBase::setUpSite

File

core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php, line 54

Class

InstallerSiteConfigProfileTest
Verifies that the installer uses the profile's site configuration.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpSite() {
    $this->assertSession()
        ->fieldValueEquals('site_mail', self::EXPECTED_SITE_MAIL);
    $this->assertSession()
        ->fieldValueEquals('date_default_timezone', self::EXPECTED_TIMEZONE);
    return parent::setUpSite();
}

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