public function MigrateImageSettingsTest::testMigration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/image/src/Tests/Migrate/d7/MigrateImageSettingsTest.php \Drupal\image\Tests\Migrate\d7\MigrateImageSettingsTest::testMigration()
Tests the migration.
File
- core/
modules/ image/ src/ Tests/ Migrate/ d7/ MigrateImageSettingsTest.php, line 32 - Contains \Drupal\image\Tests\Migrate\d7\MigrateImageSettingsTest.
Class
- MigrateImageSettingsTest
- Tests migration of Image variables to configuration.
Namespace
Drupal\image\Tests\Migrate\d7Code
public function testMigration() {
$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
->assertIdentical("core/modules/image/testsample.png", $config
->get('preview_image'));
}