You are here

public function InstallerSiteConfigProfileTest::testInstaller in Drupal 8

Same name and namespace in other branches
  1. 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
    ->assertEqual($this
    ->config('system.site')
    ->get('mail'), self::EXPECTED_SITE_MAIL);
  $this
    ->assertEqual($this
    ->config('system.date')
    ->get('timezone.default'), self::EXPECTED_TIMEZONE);
}