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. 10 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() {
    $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');
}

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