function InstallerConfigDirectoryTestBase::testConfigSync

Confirms that the installation installed the configuration correctly.

1 call to InstallerConfigDirectoryTestBase::testConfigSync()
InstallerExistingConfigMultilingualTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigMultilingualTest.php
Confirms that the installation installed the configuration correctly.
7 methods override InstallerConfigDirectoryTestBase::testConfigSync()
InstallerExistingConfigMultilingualTest::testConfigSync in core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigMultilingualTest.php
Confirms that the installation installed the configuration correctly.
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.

... See full list

File

core/tests/Drupal/FunctionalTests/Installer/InstallerConfigDirectoryTestBase.php, line 157

Class

InstallerConfigDirectoryTestBase
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.