function MigrateForumSettingsTest::testForumSettingsMigration

Same name in other branches
  1. 8.9.x core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateForumSettingsTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateForumSettingsTest::testForumSettingsMigration()
  2. 10 core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateForumSettingsTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateForumSettingsTest::testForumSettingsMigration()
  3. 11.x 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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.