You are here

protected property MigrateSystemConfigurationTest::$expectedConfig in Drupal 10

Same name in this branch
  1. 10 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::expectedConfig
  2. 10 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::expectedConfig
Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::expectedConfig
  2. 9 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::expectedConfig

File

core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php, line 16

Class

MigrateSystemConfigurationTest
Migrates various configuration objects owned by the System module.

Namespace

Drupal\Tests\system\Kernel\Migrate\d7

Code

protected $expectedConfig = [
  'system.authorize' => [],
  'system.cron' => [
    'threshold' => [
      // autorun is not handled by the migration.
      // 'autorun' => 0,
      'requirements_warning' => 172800,
      'requirements_error' => 1209600,
    ],
    'logging' => 1,
  ],
  'system.date' => [
    'first_day' => 1,
    'country' => [
      'default' => 'US',
    ],
    'timezone' => [
      'default' => 'America/Chicago',
      'user' => [
        'configurable' => TRUE,
        // DRUPAL_USER_TIMEZONE_SELECT (D7 API)
        'default' => 2,
        'warn' => TRUE,
      ],
    ],
  ],
  'system.file' => [
    'allow_insecure_uploads' => TRUE,
    // default_scheme is not handled by the migration.
    'default_scheme' => 'public',
    // temporary_maximum_age is not handled by the migration.
    'temporary_maximum_age' => 21600,
  ],
  'system.image.gd' => [
    'jpeg_quality' => 80,
  ],
  'system.image' => [
    'toolkit' => 'gd',
  ],
  'system.logging' => [
    'error_level' => 'some',
  ],
  'system.mail' => [
    'interface' => [
      'default' => 'php_mail',
    ],
  ],
  'system.maintenance' => [
    // langcode is not handled by the migration.
    'langcode' => 'en',
    'message' => 'This is a custom maintenance mode message.',
  ],
  'system.performance' => [
    'cache' => [
      'page' => [
        'max_age' => 300,
      ],
    ],
    'css' => [
      'preprocess' => TRUE,
      // gzip is not handled by the migration.
      'gzip' => TRUE,
    ],
    // fast_404 is not handled by the migration.
    'fast_404' => [
      'enabled' => TRUE,
      'paths' => '/\\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i',
      'exclude_paths' => '/\\/(?:styles|imagecache)\\//',
      'html' => '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>',
    ],
    'js' => [
      'preprocess' => FALSE,
      // gzip is not handled by the migration.
      'gzip' => TRUE,
    ],
    // stale_file_threshold is not handled by the migration.
    'stale_file_threshold' => 2592000,
  ],
  'system.rss' => [
    'items' => [
      'view_mode' => 'fulltext',
    ],
  ],
  'system.site' => [
    // langcode and default_langcode are not handled by the migration.
    'langcode' => 'en',
    // uuid is not handled by the migration.
    'uuid' => '',
    'name' => 'The Site Name',
    'mail' => 'joseph@flattandsons.com',
    'slogan' => 'The Slogan',
    'page' => [
      '403' => '',
      '404' => '/node',
      'front' => '/node',
    ],
    'admin_compact_mode' => TRUE,
    'weight_select_max' => 100,
    'default_langcode' => 'en',
  ],
];