You are here

public function StandardInstallerTest::testStandardConfig in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Installer/StandardInstallerTest.php \Drupal\system\Tests\Installer\StandardInstallerTest::testStandardConfig()

Ensures that the exported standard configuration is up to date.

File

core/modules/system/src/Tests/Installer/StandardInstallerTest.php, line 59
Contains \Drupal\system\Tests\Installer\StandardInstallerTest.

Class

StandardInstallerTest
Tests the interactive installer installing the standard profile.

Namespace

Drupal\system\Tests\Installer

Code

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

  // \Drupal\simpletest\WebTestBase::installParameters() uses
  // simpletest@example.com as mail address.
  $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';
  $this
    ->assertInstalledConfig($skipped_config);
}