function InstallerExistingConfigNoSystemSiteTest::testConfigSync

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

Tests that profiles with no system.site do not work.

Overrides InstallerExistingConfigTestBase::testConfigSync

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php, line 33

Class

InstallerExistingConfigNoSystemSiteTest
Testing installing from config without system.site.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testConfigSync() : void {
    $this->htmlOutput(NULL);
    $this->assertSession()
        ->titleEquals('Configuration validation | Drupal');
    $this->assertSession()
        ->pageTextContains('The configuration synchronization failed validation.');
    $this->assertSession()
        ->pageTextContains('This import does not contain system.site 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.