function ConfigEntityImportTest::testConfigUpdateImport
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php \Drupal\Tests\system\Kernel\Entity\ConfigEntityImportTest::testConfigUpdateImport()
- 8.9.x core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php \Drupal\Tests\system\Kernel\Entity\ConfigEntityImportTest::testConfigUpdateImport()
- 11.x core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php \Drupal\Tests\system\Kernel\Entity\ConfigEntityImportTest::testConfigUpdateImport()
Runs test methods for each module within a single test run.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Entity/ ConfigEntityImportTest.php, line 41
Class
- ConfigEntityImportTest
- Tests ConfigEntity importing.
Namespace
Drupal\Tests\system\Kernel\EntityCode
public function testConfigUpdateImport() : void {
$this->installConfig([
'block',
'filter',
'image',
]);
$this->container
->get('theme_installer')
->install([
'olivero',
]);
$config_storage = $this->container
->get('config.storage');
// Ensure the 'system.site' config.
$config_storage->write('system.site', [
'uuid' => (new Php())->generate(),
]);
$this->copyConfig($config_storage, $this->container
->get('config.storage.sync'));
$this->doActionUpdate();
$this->doBlockUpdate();
$this->doFilterFormatUpdate();
$this->doImageStyleUpdate();
$this->doSearchPageUpdate();
$this->doThirdPartySettingsUpdate();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.