function InstallerExistingConfigNoConfigTest::testConfigSync
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoConfigTest::testConfigSync()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoConfigTest::testConfigSync()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoConfigTest::testConfigSync()
Tests that profiles with an empty config/sync directory do not work.
Overrides InstallerConfigDirectoryTestBase::testConfigSync
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigNoConfigTest.php, line 38
Class
- InstallerExistingConfigNoConfigTest
- Verifies that profiles invalid config can not be installed.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testConfigSync() : void {
$this->assertSession()
->titleEquals('Configuration validation | Drupal');
$this->assertSession()
->pageTextContains('The configuration synchronization failed validation.');
$this->assertSession()
->pageTextContains('This import is empty and if applied would delete all of your configuration, so has been rejected.');
// 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.