You are here

public function MigrateTaxonomyConfigsTest::testTaxonomySettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Tests/Migrate/MigrateTaxonomyConfigsTest.php \Drupal\taxonomy\Tests\Migrate\MigrateTaxonomyConfigsTest::testTaxonomySettings()

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

File

core/modules/taxonomy/src/Tests/Migrate/MigrateTaxonomyConfigsTest.php, line 38
Contains \Drupal\taxonomy\Tests\Migrate\MigrateTaxonomyConfigsTest.

Class

MigrateTaxonomyConfigsTest
Upgrade variables to taxonomy.settings.yml.

Namespace

Drupal\taxonomy\Tests\Migrate

Code

public function testTaxonomySettings() {
  $config = $this
    ->config('taxonomy.settings');
  $this
    ->assertIdentical(100, $config
    ->get('terms_per_page_admin'));
  $this
    ->assertIdentical(FALSE, $config
    ->get('override_selector'));
  $this
    ->assertConfigSchema(\Drupal::service('config.typed'), 'taxonomy.settings', $config
    ->get());
}