function MigrateTaxonomyConfigsTest::testTaxonomySettings

Same name in other branches
  1. 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyConfigsTest::testTaxonomySettings()
  2. 10 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyConfigsTest::testTaxonomySettings()
  3. 11.x core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyConfigsTest::testTaxonomySettings()

Tests migration of taxonomy variables to taxonomy.settings.yml.

File

core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php, line 33

Class

MigrateTaxonomyConfigsTest
Upgrade variables to taxonomy.settings.yml.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate

Code

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());
}

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