public function ConfigInstallerEnSecondTest::testInstaller in Configuration installer 8
Ensures that the user page is available after installation.
Overrides ConfigInstallerTestBase::testInstaller
File
- tests/
src/ Functional/ ConfigInstallerEnSecondTest.php, line 25
Class
- ConfigInstallerEnSecondTest
- 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
->assertTrue(ConfigurableLanguage::load('en'), "The language 'en' exists");
$this
->assertTrue(\Drupal::service('language_manager')
->isMultilingual());
}