You are here

public function IgnoreKernelTest::testImport in Config Ignore 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/IgnoreKernelTest.php \Drupal\Tests\config_ignore\Kernel\IgnoreKernelTest::testImport()

Test the import transformations.

@dataProvider importProvider

Parameters

array $modes: The import modes.

array $patterns: An array of ignore patterns, we may refactor this to be the whole config.

array $active: Modifications to the active config.

array $sync: Modifications to the sync storage.

array $expected: Modifications to the expected storage.

File

tests/src/Kernel/IgnoreKernelTest.php, line 67

Class

IgnoreKernelTest
Test the transformations.

Namespace

Drupal\Tests\config_ignore\Kernel

Code

public function testImport(array $modes, array $patterns, array $active, array $sync, array $expected) {
  $this
    ->config('config_ignore.settings')
    ->set('ignored_config_entities', $patterns)
    ->save();
  $expectedStorage = $this
    ->setUpStorages($active, $sync, $expected);
  static::assertStorageEquals($expectedStorage, $this
    ->getImportStorage());
}