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()
- 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.
10 calls to ConfigTestTrait::copyConfig()
- FieldImportChangeTest::testImportChange in core/
modules/ field/ tests/ src/ Kernel/ FieldImportChangeTest.php - Tests importing an updated field.
- FieldImportCreateTest::testImportCreate in core/
modules/ field/ tests/ src/ Kernel/ FieldImportCreateTest.php - Tests creating field storages and fields during config import.
- FieldImportDeleteTest::testImportDelete in core/
modules/ field/ tests/ src/ Kernel/ FieldImportDeleteTest.php - Tests deleting field storages and fields as part of config import.
- FieldImportDeleteUninstallTest::testImportAlreadyDeletedUninstall in core/
modules/ field/ tests/ src/ Kernel/ FieldImportDeleteUninstallTest.php - Tests purging previously deleted fields and storages in config import.
- FieldImportDeleteUninstallTest::testImportDeleteUninstall in core/
modules/ field/ tests/ src/ Kernel/ FieldImportDeleteUninstallTest.php - Tests deleting field storages and fields as part of config import.
File
-
core/
tests/ Drupal/ Tests/ ConfigTestTrait.php, line 56
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.