MigrateMenuSettingsTest.php

Same filename in other branches
  1. 9 core/modules/menu_ui/tests/src/Kernel/Migrate/MigrateMenuSettingsTest.php
  2. 8.9.x core/modules/menu_ui/tests/src/Kernel/Migrate/MigrateMenuSettingsTest.php
  3. 11.x core/modules/menu_ui/tests/src/Kernel/Migrate/MigrateMenuSettingsTest.php

Namespace

Drupal\Tests\menu_ui\Kernel\Migrate

File

core/modules/menu_ui/tests/src/Kernel/Migrate/MigrateMenuSettingsTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\menu_ui\Kernel\Migrate;

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

/**
 * Tests migration of menu_ui settings.
 *
 * @group menu_ui
 */
class MigrateMenuSettingsTest extends MigrateDrupal7TestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'menu_ui',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installConfig([
            'menu_ui',
        ]);
        $this->executeMigration('menu_settings');
    }
    public function testMigration() : void {
        $this->assertTrue(\Drupal::config('menu_ui.settings')->get('override_parent_selector'));
    }

}

Classes

Title Deprecated Summary
MigrateMenuSettingsTest Tests migration of menu_ui settings.

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