function InstallerExistingConfigNoSystemSiteTest::testConfigSync

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoSystemSiteTest::testConfigSync()
  2. 10 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 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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.