You are here

public function MigrateGlobalThemeSettingsTest::testMigrateThemeSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateGlobalThemeSettingsTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateGlobalThemeSettingsTest::testMigrateThemeSettings()
  2. 9 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateGlobalThemeSettingsTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateGlobalThemeSettingsTest::testMigrateThemeSettings()

Tests migration of global theme settings to configuration.

File

core/modules/system/tests/src/Kernel/Migrate/d7/MigrateGlobalThemeSettingsTest.php, line 30

Class

MigrateGlobalThemeSettingsTest
Tests migration of global theme settings variables to configuration.

Namespace

Drupal\Tests\system\Kernel\Migrate\d7

Code

public function testMigrateThemeSettings() {
  $config = $this
    ->config('system.theme.global');
  $this
    ->assertSame('image/png', $config
    ->get('favicon.mimetype'));
  $this
    ->assertSame('public://somefavicon.png', $config
    ->get('favicon.path'));
  $this
    ->assertFalse($config
    ->get('favicon.use_default'));
  $this
    ->assertFalse($config
    ->get('features.comment_user_picture'));
  $this
    ->assertFalse($config
    ->get('features.comment_user_verification'));
  $this
    ->assertFalse($config
    ->get('features.favicon'));
  $this
    ->assertFalse($config
    ->get('features.node_user_picture'));
  $this
    ->assertFalse($config
    ->get('features.logo'));
  $this
    ->assertTrue($config
    ->get('features.name'));
  $this
    ->assertFalse($config
    ->get('features.slogan'));
  $this
    ->assertSame('public://customlogo.png', $config
    ->get('logo.path'));
  $this
    ->assertTrue($config
    ->get('logo.use_default'));
}