public function MigrateFileConfigsTest::testFileSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/Tests/Migrate/d6/MigrateFileConfigsTest.php \Drupal\file\Tests\Migrate\d6\MigrateFileConfigsTest::testFileSettings()
Tests migration of file variables to file.settings.yml.
File
- core/
modules/ file/ src/ Tests/ Migrate/ d6/ MigrateFileConfigsTest.php, line 33 - Contains \Drupal\file\Tests\Migrate\d6\MigrateFileConfigsTest.
Class
- MigrateFileConfigsTest
- Upgrade variables to file.settings.yml.
Namespace
Drupal\file\Tests\Migrate\d6Code
public function testFileSettings() {
$config = $this
->config('file.settings');
$this
->assertIdentical('textfield', $config
->get('description.type'));
$this
->assertIdentical(128, $config
->get('description.length'));
$this
->assertIdentical('sites/default/files/icons', $config
->get('icon.directory'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'file.settings', $config
->get());
}