You are here

protected property MigrateSystemConfigurationTest::$expectedConfig in Drupal 8

Same name in this branch
  1. 8 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::expectedConfig
  2. 8 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. 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' => [
    'filetransfer_default' => 'ftp',
  ],
  'system.cron' => [
    'threshold' => [
      // autorun is not handled by the migration.
      // 'autorun' => 0,
      'requirements_warning' => 172800,
      'requirements_error' => 1209600,
    ],
    'logging' => 1,
  ],
  'system.date' => [
    'country' => [
      'default' => 'US',
    ],
    'first_day' => 1,
    'timezone' => [
      'default' => 'America/Chicago',
      'user' => [
        'configurable' => TRUE,
        'warn' => TRUE,
        // DRUPAL_USER_TIMEZONE_SELECT (D7 API)
        'default' => 2,
      ],
    ],
  ],
  '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' => [
    'message' => 'This is a custom maintenance mode message.',
    // langcode is not handled by the migration.
    'langcode' => 'en',
  ],
  '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' => [
    'channel' => [
      'description' => '',
    ],
    'items' => [
      'limit' => 27,
      'view_mode' => 'fulltext',
    ],
    'langcode' => 'en',
  ],
  'system.site' => [
    // uuid is not handled by the migration.
    'uuid' => '',
    'name' => 'The Site Name',
    'mail' => 'joseph@flattandsons.com',
    'slogan' => 'The Slogan',
    'page' => [
      '403' => '/node',
      '404' => '/node',
      'front' => '/node',
    ],
    'admin_compact_mode' => TRUE,
    'weight_select_max' => 40,
    // langcode and default_langcode are not handled by the migration.
    'langcode' => 'en',
    'default_langcode' => 'en',
  ],
];