MigrateFileConfigsTest.php in Drupal 10
File
core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php
View source
<?php
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
class MigrateFileConfigsTest extends MigrateDrupal6TestBase {
use SchemaCheckTestTrait;
protected function setUp() : void {
parent::setUp();
$this
->executeMigration('file_settings');
}
public function testFileSettings() {
$config = $this
->config('file.settings');
$this
->assertSame('textfield', $config
->get('description.type'));
$this
->assertSame(128, $config
->get('description.length'));
$this
->assertSame('sites/default/files/icons', $config
->get('icon.directory'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'file.settings', $config
->get());
}
}