MigrateFileConfigsTest.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php
- 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php
- 10 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php
- 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php
- 11.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php
- 11.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php
Namespace
Drupal\Tests\file\Kernel\Migrate\d7File
-
core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFileConfigsTest.php
View source
<?php
namespace Drupal\Tests\file\Kernel\Migrate\d7;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Upgrade variables to file.settings.yml.
*
* @group migrate_drupal_7
*/
class MigrateFileConfigsTest extends MigrateDrupal7TestBase {
use SchemaCheckTestTrait;
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->executeMigration('file_settings');
}
/**
* Tests migration of file variables to file.settings.yml.
*/
public function testFileSettings() {
$config = $this->config('file.settings');
$this->assertSame('textfield', $config->get('description.type'));
$this->assertSame(256, $config->get('description.length'));
$this->assertSame('sites/default/files/icons', $config->get('icon.directory'));
$this->assertConfigSchema(\Drupal::service('config.typed'), 'file.settings', $config->get());
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MigrateFileConfigsTest | Upgrade variables to file.settings.yml. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.