You are here

public function LocaleNonInteractiveInstallTest::testInstallerTranslations in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveInstallTest::testInstallerTranslations()

Tests that the expected translated text appears on the login screen.

File

core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php, line 57

Class

LocaleNonInteractiveInstallTest
Tests installing in a different language with a non-dev version string.

Namespace

Drupal\Tests\locale\Functional

Code

public function testInstallerTranslations() {
  $this
    ->drupalGet('user/login');

  // cSpell:disable-next-line
  $this
    ->assertSession()
    ->responseContains('Geben sie das Passwort für ihren Benutzernamen ein.');
}