You are here

public function ConfigIgnoreBrowserTestBase::doExport in Config Ignore 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/ConfigIgnoreBrowserTestBase.php \Drupal\Tests\config_ignore\Functional\ConfigIgnoreBrowserTestBase::doExport()

Perform a config export to sync. folder.

7 calls to ConfigIgnoreBrowserTestBase::doExport()
ConfigIgnoreHookTest::testSettingsAlterHook in tests/src/Functional/ConfigIgnoreHookTest.php
Test hook implementation of another module.
ConfigIgnoreTest::testImportMissingConfig in tests/src/Functional/ConfigIgnoreTest.php
Tests config in active storage is not deleted if it should be ignored.
ConfigIgnoreTest::testValidateForceImporting in tests/src/Functional/ConfigIgnoreTest.php
Verify Force Import syntax is working.
ConfigIgnoreTest::testValidateForceImportingWithWildcard in tests/src/Functional/ConfigIgnoreTest.php
Verify excluded configuration works with wildcards.
ConfigIgnoreTest::testValidateIgnoring in tests/src/Functional/ConfigIgnoreTest.php
Verify that config can get ignored.

... See full list

File

tests/src/Functional/ConfigIgnoreBrowserTestBase.php, line 61

Class

ConfigIgnoreBrowserTestBase
Class ConfigIgnoreBrowserTestBase.

Namespace

Drupal\Tests\config_ignore\Functional

Code

public function doExport() {

  // Setup a config sync. dir with a, more or less,  known set of config
  // entities. This is a full blown export of yaml files, written to the disk.

  /** @var \Drupal\Core\Config\StorageInterface $destination_storage */
  $destination_storage = $this->container
    ->get('config.storage.sync');

  // Importantly export from the export storage so that the export
  // transformation is triggered.

  /** @var \Drupal\Core\Config\StorageInterface $source_storage */
  $source_storage = $this->container
    ->get('config.storage.export');
  $this
    ->copyConfig($source_storage, $destination_storage);
}