public function IgnoreKernelTest::testExport in Config Ignore 8.2
Same name and namespace in other branches
- 8.3 tests/src/Kernel/IgnoreKernelTest.php \Drupal\Tests\config_ignore\Kernel\IgnoreKernelTest::testExport()
Test the export transformations.
@dataProvider exportProvider
Parameters
string $mode: The export mode
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 219
Class
- IgnoreKernelTest
- Test the transformations.
Namespace
Drupal\Tests\config_ignore\KernelCode
public function testExport(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
->getExportStorage());
}