protected function ConfigTestTrait::copyConfig in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/ConfigTestTrait.php \Drupal\Tests\ConfigTestTrait::copyConfig()
- 9 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.
12 calls to ConfigTestTrait::copyConfig()
- ConfigEntityImportTest::testConfigUpdateImport in core/
modules/ system/ tests/ src/ Kernel/ Entity/ ConfigEntityImportTest.php - Runs test methods for each module within a single test run.
- ConfigImporterMissingContentTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImporterMissingContentTest.php - ConfigImporterTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImporterTest.php - ConfigImportRecreateTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImportRecreateTest.php - ConfigImportRecreateTest::testRecreateEntity in core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImportRecreateTest.php
File
- core/
tests/ Drupal/ Tests/ ConfigTestTrait.php, line 55
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);
}