You are here

public function InstallerExistingConfigTestBase::testConfigSync in Drupal 8

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

Confirms that the installation installed the configuration correctly.

1 call to InstallerExistingConfigTestBase::testConfigSync()
InstallerExistingConfigSyncDirectoryMultilingualTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
Confirms that the installation installed the configuration correctly.
6 methods override InstallerExistingConfigTestBase::testConfigSync()
InstallerExistingConfigNoConfigTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php
Tests that profiles with an empty config/sync directory do not work.
InstallerExistingConfigNoSystemSiteTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php
Tests that profiles with no system.site do not work.
InstallerExistingConfigProfileHookInstall::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
Confirms the installation has failed and the expected error is displayed.
InstallerExistingConfigSyncDirectoryMultilingualTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php
Confirms that the installation installed the configuration correctly.
InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
Tests installing from config is not available due to hook_INSTALL().

... See full list

File

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

Class

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

Namespace

Drupal\FunctionalTests\Installer

Code

public function testConfigSync() {

  // 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
    ->assertEqual($expected, $change_list);
}