diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigSchemaTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigSchemaTest.php deleted file mode 100644 index ee7883f..0000000 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigSchemaTest.php +++ /dev/null @@ -1,61 +0,0 @@ - 'Migrate action configuration schema', - 'description' => 'Tests the configuration schema of action module', - 'group' => 'Migrate Drupal', - ); - } - - /** - * {@inheritdoc} - */ - public function setUp() { - parent::setUp(); - $migration = entity_load('migration', 'd6_action_settings'); - $dumps = array( - $this->getDumpDirectory() . '/Drupal6ActionSettings.php', - ); - $this->prepare($migration, $dumps); - $executable = new MigrateExecutable($migration, $this); - $executable->import(); - } - - /** - * Tests migration of action variables to action.settings.yml. - */ - public function testActionConfigSchema() { - $config_data = \Drupal::config('action.settings')->get(); - $this->assertConfigSchema(\Drupal::service('config.typed'), 'action.settings', $config_data); - } - -} diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigsTest.php index b3e36dd..d9ced7d 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateActionConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateActionConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -55,4 +58,12 @@ public function testActionSettings() { $this->assertIdentical($config->get('recursion_limit'), 35); } + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = \Drupal::config('action.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'action.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorConfigsTest.php index 2cb114a..8d8dc6e 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateAggregatorConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -62,4 +65,12 @@ public function testAggregatorSettings() { $this->assertIdentical($config->get('source.category_selector'), 'checkboxes'); } + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('aggregator.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'aggregator.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateBookConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateBookConfigsTest.php index 6f2e179..07fcfb0 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateBookConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateBookConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateBookConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -57,4 +60,13 @@ public function testBookSettings() { $this->assertIdentical($config->get('block.navigation.mode'), 'all pages'); $this->assertIdentical($config->get('allowed_types'), array('book')); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = \Drupal::config('book.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'book.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php index fadaccc..08aa49a 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateContactConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -66,4 +69,13 @@ public function testContactSettings() { $this->assertIdentical($config->get('flood.limit'), 3); $this->assertIdentical($config->get('default_category'), 'some_other_category'); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('contact.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'contact.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateDblogConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateDblogConfigsTest.php index e4753f4..22ea644 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateDblogConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateDblogConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateDblogConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -55,4 +58,13 @@ public function testBookSettings() { $config = \Drupal::config('dblog.settings'); $this->assertIdentical($config->get('row_limit'), 1000); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('dblog.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'dblog.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldConfigsTest.php index 4a7e340..e5e752b 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateFieldConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * {@inheritdoc} */ @@ -47,4 +50,13 @@ public function testFieldSettings() { $config = \Drupal::config('field.settings'); $this->assertIdentical($config->get('language_fallback'), TRUE); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('field.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'field.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateFileConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateFileConfigsTest.php index fc7edc4..1c905f8 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateFileConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateFileConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateFileConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -57,4 +60,13 @@ public function testFileSettings() { $this->assertIdentical($config->get('description.length'), 128); $this->assertIdentical($config->get('icon.directory'), 'sites/default/files/icons'); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('file.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'file.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateForumConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateForumConfigsTest.php index d5fb297..853e3e5 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateForumConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateForumConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateForumConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -62,4 +65,13 @@ public function testForumSettings() { // This is 'forum_block_num_1' in D6, but 'block:new:limit' in D8. $this->assertIdentical($config->get('block.new.limit'), 5); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('forum.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'forum.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateLocaleConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateLocaleConfigsTest.php index de89d92..f739f5c 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateLocaleConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateLocaleConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateLocaleConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -56,4 +59,12 @@ public function testLocaleSettings() { $this->assertIdentical($config->get('javascript.directory'), 'languages'); } + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('locale.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'locale.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateMenuConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateMenuConfigsTest.php index 404f281..5cf5b99 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateMenuConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateMenuConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateMenuConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -56,4 +59,13 @@ public function testMenuSettings() { $this->assertIdentical($config->get('secondary_links'), 'secondary-links'); $this->assertIdentical($config->get('override_parent_selector'), FALSE); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('menu_ui.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'menu_ui.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php index 165fe13..0476c1d 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateNodeConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -55,4 +58,14 @@ public function testNodeSettings() { $config = \Drupal::config('node.settings'); $this->assertIdentical($config->get('use_admin_theme'), false); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('node.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'node.settings', $config_data); + } + + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateSearchConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateSearchConfigsTest.php index c2c5dbf..36f9abd 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateSearchConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateSearchConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateSearchConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -57,4 +60,13 @@ public function testSearchSettings() { $this->assertIdentical($config->get('index.overlap_cjk'), TRUE); $this->assertIdentical($config->get('index.cron_limit'), 100); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('search.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'search.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateSimpletestConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateSimpletestConfigsTest.php index 688410b..9ac55c0 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateSimpletestConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateSimpletestConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateSimpletestConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -61,4 +64,13 @@ public function testSimpletestSettings() { $this->assertIdentical($config->get('httpauth.username'), ''); $this->assertIdentical($config->get('verbose'), TRUE); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('simpletest.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'simpletest.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateStatisticsConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateStatisticsConfigsTest.php index eaac333..55b9e01 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateStatisticsConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateStatisticsConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateMessage; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -16,6 +17,8 @@ */ class MigrateStatisticsConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -60,4 +63,13 @@ public function testStatisticsSettings() { $this->assertIdentical($config->get('block.popular.top_all_limit'), 0); $this->assertIdentical($config->get('block.popular.top_recent_limit'), 0); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('statistics.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'statistics.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateSyslogConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateSyslogConfigsTest.php index 587bbb8..19b47ba 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateSyslogConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateSyslogConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateSyslogConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -55,4 +58,13 @@ public function testSyslogSettings() { $this->assertIdentical($config->get('identity'), 'drupal'); $this->assertIdentical($config->get('facility'), '128'); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('syslog.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'syslog.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyConfigsTest.php index b89874b..51596ce 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateTaxonomyConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -55,4 +58,12 @@ public function testTaxonomySettings() { $this->assertIdentical($config->get('terms_per_page_admin'), 100); $this->assertIdentical($config->get('override_selector'), FALSE); } + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('taxonomy.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'taxonomy.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateTextConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateTextConfigsTest.php index 04e659b..7f217c6 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateTextConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateTextConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateTextConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -55,4 +58,13 @@ public function testTextSettings() { $this->assertIdentical($config->get('default_summary_length'), 456); } + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('text.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'text.settings', $config_data); + } + + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUpdateConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUpdateConfigsTest.php index 444fa7f..5de90cf 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUpdateConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUpdateConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateUpdateConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * Modules to enable. * @@ -57,4 +60,13 @@ public function testUpdateSettings() { $this->assertIdentical($config->get('notification.threshold'), 'all'); $this->assertIdentical($config->get('notification.mails'), array()); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('update.settings')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'update.settings', $config_data); + } + } diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserConfigsTest.php index 7a2a8e7..6555682 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserConfigsTest.php @@ -7,6 +7,7 @@ namespace Drupal\migrate_drupal\Tests\d6; +use Drupal\config\Tests\SchemaCheckTestTrait; use Drupal\migrate\MigrateExecutable; use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase; @@ -15,6 +16,8 @@ */ class MigrateUserConfigsTest extends MigrateDrupalTestBase { + use SchemaCheckTestTrait; + /** * {@inheritdoc} */ @@ -60,4 +63,13 @@ public function testUserMail() { $this->assertIdentical($config->get('status_blocked.subject'), 'Account details for !username at !site (blocked)'); $this->assertIdentical($config->get('status_blocked.body'), "!username,\n\nYour account on !site has been blocked."); } + + /** + * Tests configuration schema. + */ + public function testConfigSchema() { + $config_data = $config = \Drupal::config('user.mail')->get(); + $this->assertConfigSchema(\Drupal::service('config.typed'), 'user.mail', $config_data); + } + }