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. 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::setUpProfile()

Installer step: Select installation profile.

Overrides InstallerTestBase::setUpProfile

1 call to InstallerExistingConfigTestBase::setUpProfile()
InstallerExistingConfigSyncDirectoryMultilingualTest::setUpProfile in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
Installer step: Select installation profile.
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 154

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.