function InstallerExistingConfigTestBase::testConfigSync

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()
  3. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()

Confirms that the installation installed the configuration correctly.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php, line 154

Class

InstallerExistingConfigTestBase
Provides a base class for testing installing from existing configuration.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testConfigSync() : void {
  // After installation there is no snapshot and nothing to import.
  $change_list = $this->configImporter()
    ->getStorageComparer()
    ->getChangelist();
  $expected = [
    'create' => [],
    // The system.mail is changed configuration because the test system
    // changes it to ensure that mails are not sent.
'update' => [
      'system.mail',
    ],
    'delete' => [],
    'rename' => [],
  ];
  $this->assertEquals($expected, $change_list);
}

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