function MigrateSystemConfigurationTest::testConfigurationMigration

Tests that all expected configuration gets migrated.

File

core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php, line 147

Class

MigrateSystemConfigurationTest
Migrates various configuration objects owned by the System module.

Namespace

Drupal\Tests\system\Kernel\Migrate\d6

Code

public function testConfigurationMigration() {
  foreach ($this->expectedConfig as $config_id => $values) {
    $actual = \Drupal::config($config_id)->get();
    unset($actual['_core']);
    $this->assertSame($values, $actual, $config_id . ' matches expected values.');
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.