function MigrateFileConfigsTest::testFileSettings
Same name in this branch
- 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileConfigsTest::testFileSettings()
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileConfigsTest::testFileSettings()
- 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileConfigsTest::testFileSettings()
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileConfigsTest::testFileSettings()
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileConfigsTest::testFileSettings()
- 11.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileConfigsTest::testFileSettings()
- 11.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileConfigsTest::testFileSettings()
Tests migration of file variables to file.settings.yml.
File
-
core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d6/ MigrateFileConfigsTest.php, line 30
Class
- MigrateFileConfigsTest
- Upgrade variables to file.settings.yml.
Namespace
Drupal\Tests\file\Kernel\Migrate\d6Code
public function testFileSettings() : void {
$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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.