diff --git a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/MigrateSystemConfigsTest.php b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/MigrateSystemConfigsTest.php deleted file mode 100644 index a878076..0000000 --- a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/MigrateSystemConfigsTest.php +++ /dev/null @@ -1,92 +0,0 @@ - 'Migrate variables to system.*.yml', - 'description' => 'Upgrade variables to system.*.yml', - 'group' => 'Migrate Drupal', - ); - } - - function testSystemSite() { - $migration = entity_load('migration', 'd6_system_site'); - $dumps = array( - drupal_get_path('module', 'migrate_drupal') . '/lib/Drupal/migrate_drupal/Tests/Dump/Drupal6SystemSite.php', - ); - $this->prepare($migration, $dumps); - $executable = new MigrateExecutable($migration, new MigrateMessage); - $executable->import(); - $config = \Drupal::config('system.site'); - $this->assertIdentical($config->get('name'), 'drupal'); - $this->assertIdentical($config->get('mail'), 'admin@example.com'); - $this->assertIdentical($config->get('slogan'), 'Migrate rocks'); - $this->assertIdentical($config->get('page.front'), 'anonymous-hp'); - $this->assertIdentical($config->get('page.403'), 'user'); - $this->assertIdentical($config->get('page.404'), 'page-not-found'); - $this->assertIdentical($config->get('weight_select_max'), 99); - $this->assertIdentical($config->get('admin_compact_mode'), FALSE); - } - - /** - * Tests migration of system (cron) variables to system.cron.yml. - */ - public function testSystemCron() { - $migration = entity_load('migration', 'd6_system_cron'); - $dumps = array( - drupal_get_path('module', 'migrate_drupal') . '/lib/Drupal/migrate_drupal/Tests/Dump/Drupal6SystemCron.php', - ); - $this->prepare($migration, $dumps); - $executable = new MigrateExecutable($migration, new MigrateMessage()); - $executable->import(); - $config = \Drupal::config('system.cron'); - $this->assertIdentical($config->get('threshold.warning'), 172800); - $this->assertIdentical($config->get('threshold.error'), 1209600); - } - - /** - * Tests migration of system (rss) variables to system.rss.yml. - */ - public function testSystemRss() { - $migration = entity_load('migration', 'd6_system_rss'); - $dumps = array( - drupal_get_path('module', 'migrate_drupal') . '/lib/Drupal/migrate_drupal/Tests/Dump/Drupal6SystemRss.php', - ); - $this->prepare($migration, $dumps); - $executable = new MigrateExecutable($migration, new MigrateMessage()); - $executable->import(); - $config = \Drupal::config('system.rss'); - $this->assertIdentical($config->get('items.limit'), 10); - } - - /** - * Tests migration of system (Performance) variables to system.performance.yml. - */ - public function testSystemPerformance() { - $migration = entity_load('migration', 'd6_system_performance'); - $dumps = array( - drupal_get_path('module', 'migrate_drupal') . '/lib/Drupal/migrate_drupal/Tests/Dump/Drupal6SystemPerformance.php', - ); - $this->prepare($migration, $dumps); - $executable = new MigrateExecutable($migration, new MigrateMessage()); - $executable->import(); - $config = \Drupal::config('system.performance'); - $this->assertIdentical($config->get('css.preprocess'), FALSE); - $this->assertIdentical($config->get('js.preprocess'), FALSE); - $this->assertIdentical($config->get('cache.page.max_age'), 0); - } -} diff --git a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSearchConfigsTest.php b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSearchConfigsTest.php index 5357a06..ff7ef66 100644 --- a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSearchConfigsTest.php +++ b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSearchConfigsTest.php @@ -40,7 +40,7 @@ public function testSearchSettings() { $executable->import(); $config = \Drupal::config('search.settings'); $this->assertIdentical($config->get('index.minimum_word_size'), 3); - $this->assertIdentical($config->get('index.overlap_cjk'), 1); + $this->assertIdentical($config->get('index.overlap_cjk'), TRUE); $this->assertIdentical($config->get('index.cron_limit'), 100); // Not sure where these two variables are set in D6. $this->assertIdentical($config->get('index.tag_weights'), array( diff --git a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSystemConfigsTest.php b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSystemConfigsTest.php index 26cc353..843a1b2 100644 --- a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSystemConfigsTest.php +++ b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateSystemConfigsTest.php @@ -69,8 +69,7 @@ public function testSystemPerformance() { $config = \Drupal::config('system.performance'); $this->assertIdentical($config->get('css.preprocess'), false); $this->assertIdentical($config->get('js.preprocess'), false); - // @TODO: make this 0 once there's schema for cache.page.max_age. - $this->assertIdentical($config->get('cache.page.max_age'), '0'); + $this->assertIdentical($config->get('cache.page.max_age'), 0); } /** @@ -85,7 +84,7 @@ public function testSystemTheme() { $executable = new MigrateExecutable($migration, new MigrateMessage()); $executable->import(); $config = \Drupal::config('system.theme'); - $this->assertIdentical($config->get('admin'), 0); + $this->assertIdentical($config->get('admin'), '0'); $this->assertIdentical($config->get('default'), 'garland'); }