class InstallerExistingConfigExistingSettingsTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigExistingSettingsTest
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigExistingSettingsTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigExistingSettingsTest
Verifies that installing from existing configuration works.
@group Installer
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\FunctionalTests\Installer\InstallerTestBase uses \Drupal\Tests\RequirementsPageTrait extends \Drupal\Tests\BrowserTestBase
- class \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase extends \Drupal\FunctionalTests\Installer\InstallerTestBase
- class \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest extends \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase
- class \Drupal\FunctionalTests\Installer\InstallerExistingConfigExistingSettingsTest extends \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest
- class \Drupal\FunctionalTests\Installer\InstallerExistingConfigTest extends \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase
- class \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase extends \Drupal\FunctionalTests\Installer\InstallerTestBase
- class \Drupal\FunctionalTests\Installer\InstallerTestBase uses \Drupal\Tests\RequirementsPageTrait extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of InstallerExistingConfigExistingSettingsTest
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigExistingSettingsTest.php, line 12
Namespace
Drupal\FunctionalTests\InstallerView source
class InstallerExistingConfigExistingSettingsTest extends InstallerExistingConfigTest {
/**
* {@inheritdoc}
*
* Partially configures a preexisting settings.php file before invoking the
* interactive installer.
*/
protected function prepareEnvironment() {
parent::prepareEnvironment();
// Pre-configure hash salt.
// Any string is valid, so simply use the class name of this test.
$this->settings['settings']['hash_salt'] = (object) [
'value' => __CLASS__,
'required' => TRUE,
];
// Pre-configure database credentials.
$connection_info = Database::getConnectionInfo();
unset($connection_info['default']['pdo']);
unset($connection_info['default']['init_commands']);
$this->settings['databases']['default'] = (object) [
'value' => $connection_info,
'required' => TRUE,
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.