You are here

public function MigrateTaxonomyConfigsTest::testTaxonomySettings in Drupal 9

Same name and namespace in other branches
  1. 8 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());
}