You are here

public function MigrateForumSettingsTest::testForumSettingsMigration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateForumSettingsTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateForumSettingsTest::testForumSettingsMigration()
  2. 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 43

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
    ->assertSame(9, $config
    ->get('block.active.limit'));
  $this
    ->assertSame(4, $config
    ->get('block.new.limit'));
  $this
    ->assertSame(10, $config
    ->get('topics.hot_threshold'));
  $this
    ->assertSame(25, $config
    ->get('topics.page_limit'));
  $this
    ->assertSame(1, $config
    ->get('topics.order'));
  $this
    ->assertSame('forums', $config
    ->get('vocabulary'));
}