InstallerExistingConfigNoSystemSiteTest.php in Drupal 8
File
core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
class InstallerExistingConfigNoSystemSiteTest extends InstallerExistingConfigTestBase {
protected function prepareEnvironment() {
parent::prepareEnvironment();
unlink($this->siteDirectory . '/profiles/' . $this->profile . '/config/sync/system.site.yml');
}
public function setUpSite() {
}
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.');
$this
->assertNoText('Save and continue');
$this
->assertNoFieldById('edit-submit');
}
protected function getConfigTarball() {
return __DIR__ . '/../../../fixtures/config_install/testing_config_install.tar.gz';
}
}