You are here

public function MigrateCaptchaSimpleConfigurationTest::testConfigurationMigration in CAPTCHA 8

Tests that all expected configuration gets migrated.

File

tests/src/Kernel/Migrate/d7/MigrateCaptchaSimpleConfigurationTest.php, line 61

Class

MigrateCaptchaSimpleConfigurationTest
Migrates various configuration objects owned by the captcha module.

Namespace

Drupal\Tests\captcha\Kernel\Migrate\d7

Code

public function testConfigurationMigration() {

  // Test Config.
  foreach ($this->expectedConfig as $config_id => $values) {
    $actual = \Drupal::config($config_id)
      ->get();
    $this
      ->assertSame($values, $actual);
  }
}