3 namespace Drupal\FunctionalTests\Installer;
6 * Verifies that installing from existing configuration works.
10 class InstallerExistingConfigSyncDriectoryProfileMismatchTest extends InstallerExistingConfigTestBase {
15 protected $profile = 'testing_config_install_multilingual';
20 protected $existingSyncDirectory = TRUE;
25 protected function getConfigTarball() {
26 return __DIR__ . '/../../../fixtures/config_install/multilingual.tar.gz';
30 * Installer step: Configure settings.
32 protected function setUpSettings() {
33 // Cause a profile mismatch by hacking the URL.
34 $this->drupalGet(str_replace($this->profile, 'minimal', $this->getUrl()));
35 parent::setUpSettings();
38 protected function setUpSite() {
39 // This step will not occur because there is an error.
44 * Tests that profile mismatch fails to install.
46 public function testConfigSync() {
47 $this->htmlOutput(NULL);
48 $this->assertTitle('Configuration validation | Drupal');
49 $this->assertText('The configuration synchronization failed validation.');
50 $this->assertText('The selected installation profile minimal does not match the profile stored in configuration testing_config_install_multilingual.');
52 // Ensure there is no continuation button.
53 $this->assertNoText('Save and continue');
54 $this->assertNoFieldById('edit-submit');