function LocaleNonInteractiveInstallTest::testInstallerTranslations

Same name in other branches
  1. 9 core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveInstallTest::testInstallerTranslations()
  2. 10 core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveInstallTest::testInstallerTranslations()
  3. 11.x 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');
    $this->assertSession()
        ->responseContains('Geben sie das Passwort für ihren Benutzernamen ein.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.