function StandardInstallerTest::testStandardConfig

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testStandardConfig()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.php \Drupal\FunctionalTests\Installer\StandardInstallerTest::testStandardConfig()
  3. 11.x 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 41

Class

StandardInstallerTest
Tests the interactive installer installing the standard profile.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testStandardConfig() : void {
  $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);
}

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