You are here

public function InstallerExistingConfigSyncDriectoryProfileMismatchTest::testConfigSync in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDriectoryProfileMismatchTest::testConfigSync()

Tests that profile mismatch fails to install.

Overrides InstallerExistingConfigTestBase::testConfigSync

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php, line 50

Class

InstallerExistingConfigSyncDriectoryProfileMismatchTest
Verifies that installing from existing configuration works.

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('The selected installation profile minimal does not match the profile stored in configuration testing_config_install_multilingual.');

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