MigrateSystemConfigurationTest::$expectedConfig

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
Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::expectedConfig
  2. 9 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::expectedConfig
  3. 8.9.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::expectedConfig
  4. 8.9.x core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::expectedConfig
  5. 11.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::expectedConfig
  6. 11.x core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::expectedConfig

Type: expectedConfig

File

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

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' => [
            // Auto-run is not handled by the migration.
            // 'autorun' => 0,
'requirements_warning' => 172800,
            'requirements_error' => 1209600,
        ],
        'logging' => TRUE,
    ],
    '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',
        ],
        'mailer_dsn' => [
            'scheme' => 'sendmail',
            'host' => 'default',
            'user' => NULL,
            'password' => NULL,
            'port' => NULL,
            'options' => [],
        ],
    ],
    '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,
        ],
    ],
    'system.rss' => [
        'items' => [
            'view_mode' => 'fulltext',
        ],
    ],
    'system.site' => [
        // Neither langcode nor 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',
        'mail_notification' => NULL,
    ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.