function MigrateTaxonomyConfigsTest::testTaxonomySettings

Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\MigrateTaxonomyConfigsTest::testTaxonomySettings()
  2. 8.9.x 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 35

Class

MigrateTaxonomyConfigsTest
Upgrade variables to taxonomy.settings.yml.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate

Code

public function testTaxonomySettings() : void {
    $config = $this->config('taxonomy.settings');
    $this->assertSame(100, $config->get('terms_per_page_admin'));
    $this->assertFalse($config->get('override_selector'));
    $this->assertTrue($config->get('maintain_index_table'));
    $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.