public function MigrateAcquiaConnectorConfigurationTest::testConfigurationMigration in Acquia Connector 3.x
Tests that all expected configuration gets migrated.
File
- tests/
src/ Kernel/ Migrate/ d7/ MigrateAcquiaConnectorConfigurationTest.php, line 164
Class
- MigrateAcquiaConnectorConfigurationTest
- Migrates various configuration objects owned by the acquia connector module.
Namespace
Drupal\Tests\acquia_connector\Kernel\Migrate\d7Code
public function testConfigurationMigration() {
// Test Config.
foreach ($this->expectedConfig as $config_id => $values) {
$actual = \Drupal::config($config_id)
->get();
$this
->assertSame($values, $actual);
}
// Test State.
foreach ($this->expectedState as $state_id => $values) {
$actual = \Drupal::state()
->get($state_id);
$this
->assertSame($values, $actual);
}
}