You are here

public function ConfigInstallerFrDirectorySyncTest::testInstaller in Configuration installer 8

Ensures that the user page is available after installation.

Overrides ConfigInstallerTestBase::testInstaller

File

tests/src/Functional/ConfigInstallerFrDirectorySyncTest.php, line 60

Class

ConfigInstallerFrDirectorySyncTest
Tests the config installer profile by linking to a directory.

Namespace

Drupal\Tests\config_installer\Functional

Code

public function testInstaller() {

  // Do assertions from parent.
  require_once \Drupal::root() . '/core/includes/install.inc';
  $this
    ->assertText('Félicitations, vous avez installé');
  $this
    ->assertText(drupal_install_profile_distribution_name());

  // Even though we began the install in English the configuration is French
  // so that takes precedence.
  $this
    ->assertEqual('fr', \Drupal::config('system.site')
    ->get('default_langcode'));
  $this
    ->assertFalse(\Drupal::service('language_manager')
    ->isMultilingual());
}