You are here

public function InstallerExistingConfigNoSystemSiteTest::testConfigSync in Drupal 9

Same name and namespace in other branches
  1. 8 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 31

Class

InstallerExistingConfigNoSystemSiteTest
Testing installing from config without system.site.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testConfigSync() {
  $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');
}