You are here

protected function InstallerSiteConfigProfileTest::setUpSite in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::setUpSite()
  2. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php \Drupal\FunctionalTests\Installer\InstallerSiteConfigProfileTest::setUpSite()

Final installer step: Configure site.

Overrides InstallerTestBase::setUpSite

File

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

Class

InstallerSiteConfigProfileTest
Verifies that the installer defaults to the existing site email address and timezone, if they were provided by the install profile.

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();
}