function InstallerTranslationQueryTest::testInstaller
Verifies the expected behaviors of the installation result.
File
- 
              core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTranslationQueryTest.php, line 60  
Class
- InstallerTranslationQueryTest
 - Installs Drupal in German and checks resulting site.
 
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstaller() : void {
  $this->assertSession()
    ->addressEquals('user/1');
  $this->assertSession()
    ->statusCodeEquals(200);
  // Verify German was configured but not English.
  $this->drupalGet('admin/config/regional/language');
  $this->assertSession()
    ->pageTextContains('German');
  $this->assertSession()
    ->pageTextNotContains('English');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.