function MigrateImageSettingsTest::testMigration
Same name in other branches
- 9 core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageSettingsTest.php \Drupal\Tests\image\Kernel\Migrate\d7\MigrateImageSettingsTest::testMigration()
- 8.9.x core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageSettingsTest.php \Drupal\Tests\image\Kernel\Migrate\d7\MigrateImageSettingsTest::testMigration()
- 10 core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageSettingsTest.php \Drupal\Tests\image\Kernel\Migrate\d7\MigrateImageSettingsTest::testMigration()
Tests the migration.
File
-
core/
modules/ image/ tests/ src/ Kernel/ Migrate/ d7/ MigrateImageSettingsTest.php, line 29
Class
- MigrateImageSettingsTest
- Tests migration of Image variables to configuration.
Namespace
Drupal\Tests\image\Kernel\Migrate\d7Code
public function testMigration() : void {
$config = $this->config('image.settings');
// These settings are not recommended...
$this->assertTrue($config->get('allow_insecure_derivatives'));
$this->assertTrue($config->get('suppress_itok_output'));
$this->assertSame("core/misc/druplicon.png", $config->get('preview_image'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.