You are here

protected function InstallerExistingConfigTestBase::setUpProfile in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::setUpProfile()

Installer step: Select installation profile.

Overrides InstallerTestBase::setUpProfile

2 methods override InstallerExistingConfigTestBase::setUpProfile()
InstallerExistingConfigSyncDirectoryMultilingualTest::setUpProfile in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
Installer step: Select installation profile.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpProfile in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
Installer step: Select installation profile.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php, line 120

Class

InstallerExistingConfigTestBase
Provides a base class for testing installing from existing configuration.

Namespace

Drupal\FunctionalTests\Installer

Code

protected function setUpProfile() {
  if ($this->existingSyncDirectory) {
    $edit = [
      'profile' => SelectProfileForm::CONFIG_INSTALL_PROFILE_KEY,
    ];
    $this
      ->submitForm($edit, $this->translations['Save and continue']);
  }
  else {
    parent::setUpProfile();
  }
}