You are here

public function MigrateForumSettingsTest::testForumSettingsMigration in Zircon Profile 8

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

Tests the migration of Forum's settings to configuration.

File

core/modules/forum/src/Tests/Migrate/d7/MigrateForumSettingsTest.php, line 42
Contains \Drupal\forum\Tests\Migrate\d7\MigrateForumSettingsTest.

Class

MigrateForumSettingsTest
Tests migration of Forum's variables to configuration.

Namespace

Drupal\forum\Tests\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'));
}