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();
} /**
* {@inheritdoc}
*/
protected function setUpSettings() { // Assert that the expected title is present.
$this->
assertEquals('Database configuration',
$this->
cssSelect('main h2'
)[0
]->
getText());
// Assert that we use the by core supported database drivers by default and
// not the ones from the driver_test module.