You are here

public function InstallerExistingConfigNoSystemSiteTest::testConfigSync in Drupal 8

Same name and namespace in other branches
  1. 9 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
    ->assertTitle('Configuration validation | Drupal');
  $this
    ->assertText('The configuration synchronization failed validation.');
  $this
    ->assertText('This import does not contain system.site configuration, so has been rejected.');

  // Ensure there is no continuation button.
  $this
    ->assertNoText('Save and continue');
  $this
    ->assertNoFieldById('edit-submit');
}