3 namespace Drupal\Tests\file\Kernel\Migrate\d7;
5 use Drupal\Tests\SchemaCheckTestTrait;
6 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
9 * Upgrade variables to file.settings.yml.
11 * @group migrate_drupal_7
13 class MigrateFileConfigsTest extends MigrateDrupal7TestBase {
15 use SchemaCheckTestTrait;
20 protected function setUp() {
22 $this->executeMigration('file_settings');
26 * Tests migration of file variables to file.settings.yml.
28 public function testFileSettings() {
29 $config = $this->config('file.settings');
30 $this->assertSame('textfield', $config->get('description.type'));
31 $this->assertSame(256, $config->get('description.length'));
32 $this->assertSame('sites/default/files/icons', $config->get('icon.directory'));
33 $this->assertConfigSchema(\Drupal::service('config.typed'), 'file.settings', $config->get());