function InstallerTranslationQueryTest::testInstaller

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationQueryTest::testInstaller()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationQueryTest::testInstaller()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php \Drupal\FunctionalTests\Installer\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\Installer

Code

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.