function DistributionProfileTranslationQueryTest::testInstalled

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationQueryTest::testInstalled()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationQueryTest::testInstalled()
  3. 11.x core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationQueryTest::testInstalled()

Confirms that the installation succeeded.

File

core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php, line 112

Class

DistributionProfileTranslationQueryTest
Tests distribution profile support with a 'langcode' query string.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstalled() {
    $this->assertSession()
        ->addressEquals('user/1');
    $this->assertSession()
        ->statusCodeEquals(200);
    // Confirm that we are logged-in after installation.
    $this->assertSession()
        ->pageTextContains($this->rootUser
        ->getDisplayName());
    // 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.