public function ConfigInstallerFrTarballTest::testInstaller in Configuration installer 8
Ensures that the user page is available after installation.
Overrides ConfigInstallerTestBase::testInstaller
File
- tests/
src/ Functional/ ConfigInstallerFrTarballTest.php, line 23
Class
- ConfigInstallerFrTarballTest
- Tests the config installer profile by uploading a tarball.
Namespace
Drupal\Tests\config_installer\FunctionalCode
public function testInstaller() {
// Do assertions from parent.
require_once \Drupal::root() . '/core/includes/install.inc';
$this
->assertRaw(t('Congratulations, you installed @drupal fr!', [
'@drupal' => 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());
}