public function InstallerTranslationQueryTest::testInstaller in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php \Drupal\FunctionalTests\Installer\InstallerTranslationQueryTest::testInstaller()
- 10 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 59
Class
- InstallerTranslationQueryTest
- Installs Drupal in German and checks resulting site.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstaller() {
$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');
}