You are here

public function InstallerSiteConfigProfileTest::testInstaller in Drupal 10

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

Verify the correct site config was set.

File

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

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

public function testInstaller() {
  $this
    ->assertEquals(self::EXPECTED_SITE_MAIL, $this
    ->config('system.site')
    ->get('mail'));
  $this
    ->assertEquals(self::EXPECTED_TIMEZONE, $this
    ->config('system.date')
    ->get('timezone.default'));
}