InstallerExistingConfigNoConfigTest.php in Drupal 9
File
core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
class InstallerExistingConfigNoConfigTest extends InstallerExistingConfigTestBase {
protected $defaultTheme = 'stark';
protected $profile = 'no_config_profile';
protected function setUpSite() {
}
protected function getConfigTarball() {
return __DIR__ . '/../../../fixtures/config_install/testing_config_install_no_config.tar.gz';
}
public function testConfigSync() {
$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.');
$this
->assertSession()
->pageTextNotContains('Save and continue');
$this
->assertSession()
->buttonNotExists('edit-submit');
}
}