function InstallerTest::setUpProfile
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpProfile()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpProfile()
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpProfile()
Overrides InstallerTestBase::setUpProfile
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTest.php, line 62
Class
- InstallerTest
- Tests the interactive installer.
Namespace
Drupal\FunctionalTests\InstallerCode
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.