Skip to content
Snippets Groups Projects
Select Git revision
  • 4202cdd04baf66e48aaefa0d4bf6cb0879042876
  • 11.x default protected
  • 10.6.x protected
  • 10.5.x protected
  • 11.2.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

MigrateFileConfigsTest.php

Blame
  • Alex Pott's avatar
    Issue #2684141 by benjy, dawehner: Convert migrate kernel tests to KernelTestBaseTNG
    Alex Pott authored
    4202cdd0
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    MigrateFileConfigsTest.php 1.04 KiB
    <?php
    
    /**
     * @file
     * Contains \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileConfigsTest.
     */
    
    namespace Drupal\Tests\file\Kernel\Migrate\d6;
    
    use Drupal\config\Tests\SchemaCheckTestTrait;
    use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
    
    /**
     * Upgrade variables to file.settings.yml.
     *
     * @group migrate_drupal_6
     */
    class MigrateFileConfigsTest extends MigrateDrupal6TestBase {
    
      use SchemaCheckTestTrait;
    
      /**
       * {@inheritdoc}
       */
      protected function setUp() {
        parent::setUp();
        $this->executeMigration('d6_file_settings');
      }
    
      /**
       * Tests migration of file variables to file.settings.yml.
       */
      public function testFileSettings() {
        $config = $this->config('file.settings');
        $this->assertIdentical('textfield', $config->get('description.type'));
        $this->assertIdentical(128, $config->get('description.length'));
        $this->assertIdentical('sites/default/files/icons', $config->get('icon.directory'));
        $this->assertConfigSchema(\Drupal::service('config.typed'), 'file.settings', $config->get());
      }
    
    }