You are here

protected function InstallerTest::setUpProfile in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpProfile()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpProfile()

Installer step: Select installation profile.

Overrides InstallerTestBase::setUpProfile

File

core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php, line 62

Class

InstallerTest
Tests the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpProfile() {

  // Assert that the expected title is present.
  $this
    ->assertEqual('Select an installation profile', $this
    ->cssSelect('main h2')[0]
    ->getText());
  $result = $this
    ->xpath('//span[contains(@class, :class) and contains(text(), :text)]', [
    ':class' => 'visually-hidden',
    ':text' => 'Select an installation profile',
  ]);
  $this
    ->assertCount(1, $result, "Title/Label not displayed when '#title_display' => 'invisible' attribute is set");
  parent::setUpProfile();
}