You are here

public function DistributionProfileTranslationTest::testInstalled in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php \Drupal\FunctionalTests\Installer\DistributionProfileTranslationTest::testInstalled()

Confirms that the installation succeeded.

File

core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php, line 104

Class

DistributionProfileTranslationTest
Tests distribution profile support.

Namespace

Drupal\FunctionalTests\Installer

Code

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

  // Confirm that we are logged-in after installation.
  $this
    ->assertText($this->rootUser
    ->getDisplayName());

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