function ConfigEntityImportTest::testConfigUpdateImport

Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php \Drupal\Tests\system\Kernel\Entity\ConfigEntityImportTest::testConfigUpdateImport()
  2. 8.9.x core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php \Drupal\Tests\system\Kernel\Entity\ConfigEntityImportTest::testConfigUpdateImport()
  3. 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\Entity

Code

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.