MigrateTaxonomyConfigsTest.php

Same filename and directory in other branches
  1. 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php
  2. 10 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php
  3. 11.x core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate

File

core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php

View source
<?php

namespace Drupal\Tests\taxonomy\Kernel\Migrate;

use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;

/**
 * Upgrade variables to taxonomy.settings.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateTaxonomyConfigsTest extends MigrateDrupal6TestBase {
    use SchemaCheckTestTrait;
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'taxonomy',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->executeMigration('taxonomy_settings');
    }
    
    /**
     * Tests migration of taxonomy variables to taxonomy.settings.yml.
     */
    public function testTaxonomySettings() {
        $config = $this->config('taxonomy.settings');
        $this->assertSame(100, $config->get('terms_per_page_admin'));
        $this->assertFalse($config->get('override_selector'));
        $this->assertConfigSchema(\Drupal::service('config.typed'), 'taxonomy.settings', $config->get());
    }

}

Classes

Title Deprecated Summary
MigrateTaxonomyConfigsTest Upgrade variables to taxonomy.settings.yml.

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