protected function InstallerTest::setUpProfile in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php \Drupal\FunctionalTests\Installer\InstallerTest::setUpProfile()
- 9 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 68
Class
- InstallerTest
- Tests the interactive installer.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function setUpProfile() {
$settings_services_file = DRUPAL_ROOT . '/sites/default/default.services.yml';
// Copy the testing-specific service overrides in place.
copy($settings_services_file, $this->siteDirectory . '/services.yml');
PerformanceTestRecorder::registerService($this->siteDirectory . '/services.yml', TRUE);
// Assert that the expected title is present.
$this
->assertEquals('Select an installation profile', $this
->cssSelect('main h2')[0]
->getText());
// Verify that Title/Label are not displayed when '#title_display' =>
// 'invisible' attribute is set.
$this
->assertSession()
->elementsCount('xpath', "//span[contains(@class, 'visually-hidden') and contains(text(), 'Select an installation profile')]", 1);
parent::setUpProfile();
}