You are here

public function InstallerTranslationQueryTest::testInstaller in Drupal 8

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

Class

InstallerTranslationQueryTest
Installs Drupal in German and checks resulting site.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstaller() {
  $this
    ->assertUrl('user/1');
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // Verify German was configured but not English.
  $this
    ->drupalGet('admin/config/regional/language');
  $this
    ->assertText('German');
  $this
    ->assertNoText('English');
}