MigrateFilterSettingsTest.php

Same filename in other branches
  1. 9 core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterSettingsTest.php
  2. 10 core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterSettingsTest.php
  3. 11.x core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterSettingsTest.php

Namespace

Drupal\Tests\filter\Kernel\Migrate\d7

File

core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterSettingsTest.php

View source
<?php

namespace Drupal\Tests\filter\Kernel\Migrate\d7;

use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;

/**
 * Tests migration of Filter's settings to configuration.
 *
 * @group filter
 */
class MigrateFilterSettingsTest extends MigrateDrupal7TestBase {
    public static $modules = [
        'filter',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() {
        parent::setUp();
        $this->installConfig(static::$modules);
        $this->executeMigration('d7_filter_settings');
    }
    
    /**
     * Tests migration of Filter variables to configuration.
     */
    public function testFilterSettings() {
        $this->assertSame('plain_text', $this->config('filter.settings')
            ->get('fallback_format'));
    }

}

Classes

Title Deprecated Summary
MigrateFilterSettingsTest Tests migration of Filter's settings to configuration.

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