function ConfigTestTrait::copyConfig
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/ConfigTestTrait.php \Drupal\Tests\ConfigTestTrait::copyConfig()
- 10 core/tests/Drupal/Tests/ConfigTestTrait.php \Drupal\Tests\ConfigTestTrait::copyConfig()
- 9 core/tests/Drupal/Tests/ConfigTestTrait.php \Drupal\Tests\ConfigTestTrait::copyConfig()
- 8.9.x core/tests/Drupal/Tests/ConfigTestTrait.php \Drupal\Tests\ConfigTestTrait::copyConfig()
Copies configuration objects from source storage to target storage.
Parameters
\Drupal\Core\Config\StorageInterface $source_storage: The source config storage service.
\Drupal\Core\Config\StorageInterface $target_storage: The target config storage service.
26 calls to ConfigTestTrait::copyConfig()
- ConfigExportImportUITest::testExportImport in core/
modules/ config/ tests/ src/ Functional/ ConfigExportImportUITest.php - Tests a simple site export import case.
- ConfigImportAllTest::testInstallUninstall in core/
modules/ config/ tests/ src/ Functional/ ConfigImportAllTest.php - Tests that a fixed set of modules can be installed and uninstalled.
- ConfigImportInstallProfileTest::setUp in core/
modules/ config/ tests/ src/ Functional/ ConfigImportInstallProfileTest.php - ConfigImportInstallProfileTest::testInstallProfileValidation in core/
modules/ config/ tests/ src/ Functional/ ConfigImportInstallProfileTest.php - Tests config importer can uninstall install profiles.
- ConfigImportUIAjaxTest::testImport in core/
modules/ config/ tests/ src/ FunctionalJavascript/ ConfigImportUIAjaxTest.php - Tests an updated configuration object can be viewed more than once.
File
-
core/
tests/ Drupal/ Tests/ ConfigTestTrait.php, line 46
Class
- ConfigTestTrait
- Provides helper methods to deal with config system objects in tests.
Namespace
Drupal\TestsCode
protected function copyConfig(StorageInterface $source_storage, StorageInterface $target_storage) {
static::replaceStorageContents($source_storage, $target_storage);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.