function InstallerExistingConfigProfileHookInstall::testConfigSync

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

Confirms the installation has failed and the expected error is displayed.

Overrides InstallerExistingConfigTestBase::testConfigSync

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php, line 56

Class

InstallerExistingConfigProfileHookInstall
Verifies that profiles with <a href="/api/drupal/core%21lib%21Drupal%21Core%21Extension%21module.api.php/function/hook_install/8.9.x" title="Perform setup tasks when the module is installed." class="local">hook_install</a>() can&#039;t be installed from config.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testConfigSync() {
    $this->assertTitle('Requirements problem | Drupal');
    $this->assertText($this->profile);
    $this->assertText('The selected profile has a hook_install() implementation and therefore can not be installed from configuration.');
}

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