You are here

public function MigrateImageSettingsTest::testMigration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageSettingsTest.php \Drupal\Tests\image\Kernel\Migrate\d7\MigrateImageSettingsTest::testMigration()
  2. 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 27

Class

MigrateImageSettingsTest
Tests migration of Image variables to configuration.

Namespace

Drupal\Tests\image\Kernel\Migrate\d7

Code

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'));
}