MigrateTextConfigsTest.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\Tests\text\Kernel\MigrateFile
core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.phpView source
<?php
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() {
$config = $this
->config('text.settings');
$this
->assertSame(456, $config
->get('default_summary_length'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'text.settings', $config
->get());
}
}
Classes
Name | Description |
---|---|
MigrateTextConfigsTest | Upgrade variables to text.settings.yml. |