You are here

public function MigrateForumSettingsTest::testForumSettingsMigration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateForumSettingsTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateForumSettingsTest::testForumSettingsMigration()

Tests the migration of Forum's settings to configuration.

File

core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateForumSettingsTest.php, line 37

Class

MigrateForumSettingsTest
Tests migration of Forum's variables to configuration.

Namespace

Drupal\Tests\forum\Kernel\Migrate\d7

Code

public function testForumSettingsMigration() {
  $config = $this
    ->config('forum.settings');
  $this
    ->assertIdentical(9, $config
    ->get('block.active.limit'));
  $this
    ->assertIdentical(4, $config
    ->get('block.new.limit'));
  $this
    ->assertIdentical(10, $config
    ->get('topics.hot_threshold'));
  $this
    ->assertIdentical(25, $config
    ->get('topics.page_limit'));
  $this
    ->assertIdentical(1, $config
    ->get('topics.order'));
  $this
    ->assertIdentical('forums', $config
    ->get('vocabulary'));
}