ConfigIgnoreBrowserTestBase.php in Config Ignore 8.2
File
tests/src/Functional/ConfigIgnoreBrowserTestBase.php
View source
<?php
namespace Drupal\Tests\config_ignore\Functional;
use Drupal\Core\Config\ConfigImporter;
use Drupal\Core\Config\StorageComparer;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\config_filter\Kernel\ConfigStorageTestTrait;
abstract class ConfigIgnoreBrowserTestBase extends BrowserTestBase {
use ConfigStorageTestTrait;
public static $modules = [
'config_ignore',
'config',
'config_filter',
];
protected $defaultTheme = 'stark';
public function doImport() {
$storage_comparer = new StorageComparer($this
->getImportStorage(), $this->container
->get('config.storage'));
$config_importer = new ConfigImporter($storage_comparer
->createChangelist(), $this->container
->get('event_dispatcher'), $this->container
->get('config.manager'), $this->container
->get('lock'), $this->container
->get('config.typed'), $this->container
->get('module_handler'), $this->container
->get('module_installer'), $this->container
->get('theme_handler'), $this->container
->get('string_translation'), $this->container
->get('extension.list.module'));
$config_importer
->reset()
->import();
}
public function doExport() {
$this
->copyConfig($this
->getExportStorage(), $this
->getSyncFileStorage());
}
}