
| Current Path : /var/www/html/stolberg/web/core/modules/text/tests/src/Kernel/Migrate/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/stolberg/web/core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\text\Kernel\Migrate;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to text.settings.yml.
*
* @group migrate_drupal_6
*/
class MigrateTextConfigsTest extends MigrateDrupal6TestBase {
use SchemaCheckTestTrait;
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->executeMigration('text_settings');
}
/**
* Tests migration of text variables to text.settings.yml.
*/
public function testTextSettings(): void {
$config = $this->config('text.settings');
$this->assertSame(456, $config->get('default_summary_length'));
$this->assertConfigSchema(\Drupal::service('config.typed'), 'text.settings', $config->get());
}
}