You are here

public function StandardInstallerTest::testStandardConfig in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testStandardConfig()
  2. 10 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testStandardConfig()

Ensures that the exported standard configuration is up to date.

File

core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php, line 51

Class

StandardInstallerTest
Tests the interactive installer installing the standard profile.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testStandardConfig() {
  $skipped_config = [];

  // FunctionalTestSetupTrait::installParameters() uses Drupal as site name
  // and simpletest@example.com as mail address.
  $skipped_config['system.site'][] = 'name: Drupal';
  $skipped_config['system.site'][] = 'mail: simpletest@example.com';
  $skipped_config['contact.form.feedback'][] = '- simpletest@example.com';

  // \Drupal\filter\Entity\FilterFormat::toArray() drops the roles of filter
  // formats.
  $skipped_config['filter.format.basic_html'][] = 'roles:';
  $skipped_config['filter.format.basic_html'][] = '- authenticated';
  $skipped_config['filter.format.full_html'][] = 'roles:';
  $skipped_config['filter.format.full_html'][] = '- administrator';
  $skipped_config['filter.format.restricted_html'][] = 'roles:';
  $skipped_config['filter.format.restricted_html'][] = '- anonymous';

  // The site UUID is set dynamically for each installation.
  $skipped_config['system.site'][] = 'uuid: ' . $this
    ->config('system.site')
    ->get('uuid');
  $this
    ->assertInstalledConfig($skipped_config);
}