function InstallerExistingConfigTestBase::setUpProfile

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::setUpProfile()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::setUpProfile()
  3. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::setUpProfile()

Installer step: Select installation profile.

Overrides InstallerTestBase::setUpProfile

File

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

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();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.