Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / taxonomy / tests / src / Kernel / Migrate / MigrateTaxonomyConfigsTest.php
1 <?php
2
3 namespace Drupal\Tests\taxonomy\Kernel\Migrate;
4
5 use Drupal\Tests\SchemaCheckTestTrait;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
7
8 /**
9  * Upgrade variables to taxonomy.settings.yml.
10  *
11  * @group migrate_drupal_6
12  */
13 class MigrateTaxonomyConfigsTest extends MigrateDrupal6TestBase {
14
15   use SchemaCheckTestTrait;
16
17   /**
18    * {@inheritdoc}
19    */
20   public static $modules = ['taxonomy'];
21
22   /**
23    * {@inheritdoc}
24    */
25   protected function setUp() {
26     parent::setUp();
27     $this->executeMigration('taxonomy_settings');
28   }
29
30   /**
31    * Tests migration of taxonomy variables to taxonomy.settings.yml.
32    */
33   public function testTaxonomySettings() {
34     $config = $this->config('taxonomy.settings');
35     $this->assertIdentical(100, $config->get('terms_per_page_admin'));
36     $this->assertIdentical(FALSE, $config->get('override_selector'));
37     $this->assertConfigSchema(\Drupal::service('config.typed'), 'taxonomy.settings', $config->get());
38   }
39
40 }