InstallerExistingConfigSyncDriectoryProfileMismatchTest.php in Drupal 8
File
core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDriectoryProfileMismatchTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
class InstallerExistingConfigSyncDriectoryProfileMismatchTest extends InstallerExistingConfigTestBase {
protected $defaultTheme = 'stark';
protected $profile = 'testing_config_install_multilingual';
protected $existingSyncDirectory = TRUE;
protected function getConfigTarball() {
return __DIR__ . '/../../../fixtures/config_install/multilingual.tar.gz';
}
protected function setUpSettings() {
$this
->drupalGet(str_replace($this->profile, 'minimal', $this
->getUrl()));
parent::setUpSettings();
}
protected function setUpSite() {
}
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.');
$this
->assertNoText('Save and continue');
$this
->assertNoFieldById('edit-submit');
}
}