public function InstallerNonEnglishProfileWithoutLocaleModuleTest::testNonEnglishProfileWithoutLocaleModule in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php \Drupal\FunctionalTests\Installer\InstallerNonEnglishProfileWithoutLocaleModuleTest::testNonEnglishProfileWithoutLocaleModule()
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php \Drupal\FunctionalTests\Installer\InstallerNonEnglishProfileWithoutLocaleModuleTest::testNonEnglishProfileWithoutLocaleModule()
Tests installing a profile with non-English language and no locale module.
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerNonEnglishProfileWithoutLocaleModuleTest.php, line 62
Class
- InstallerNonEnglishProfileWithoutLocaleModuleTest
- Tests installing a profile with non-English language and no locale module.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testNonEnglishProfileWithoutLocaleModule() {
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->addressEquals('user/1');
// Confirm that we are logged-in after installation.
$this
->assertSession()
->pageTextContains($this->rootUser
->getAccountName());
// Verify that the confirmation message appears.
require_once $this->root . '/core/includes/install.inc';
$this
->assertSession()
->pageTextContains('Congratulations, you installed Drupal!');
$this
->assertFalse(\Drupal::service('module_handler')
->moduleExists('locale'), 'The Locale module is not installed.');
$this
->assertTrue(\Drupal::service('module_handler')
->moduleExists('language'), 'The Language module is installed.');
$this
->assertTrue(\Drupal::languageManager()
->isMultilingual(), 'The language manager is multi-lingual.');
}