function InstallerExistingConfigSyncDirectoryProfileMismatchTest::testConfigSync
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileMismatchTest::testConfigSync()
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileMismatchTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileMismatchTest::testConfigSync()
Tests that profile mismatch fails to install.
Overrides InstallerExistingConfigTestBase::testConfigSync
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryProfileMismatchTest.php, line 52
Class
- InstallerExistingConfigSyncDirectoryProfileMismatchTest
- Verifies that installing from existing configuration works.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testConfigSync() : void {
$this->htmlOutput(NULL);
$this->assertSession()
->titleEquals('Configuration validation | Drupal');
$this->assertSession()
->pageTextContains('The configuration synchronization failed validation.');
$this->assertSession()
->pageTextContains('The selected installation profile minimal does not match the profile stored in configuration testing_config_install_multilingual.');
// Ensure there is no continuation button.
$this->assertSession()
->pageTextNotContains('Save and continue');
$this->assertSession()
->buttonNotExists('edit-submit');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.