Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoSystemSiteTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\FunctionalTests\Installer; | |
4 | |
5 /** | |
6 * Testing installing from config without system.site. | |
7 * | |
8 * @group Installer | |
9 */ | |
10 class InstallerExistingConfigNoSystemSiteTest extends InstallerExistingConfigTestBase { | |
11 | |
12 /** | |
13 * {@inheritdoc} | |
14 */ | |
15 protected function prepareEnvironment() { | |
16 parent::prepareEnvironment(); | |
17 // File API functions are not available yet. | |
18 unlink($this->siteDirectory . '/profiles/' . $this->profile . '/config/sync/system.site.yml'); | |
19 } | |
20 | |
21 /** | |
22 * {@inheritdoc} | |
23 */ | |
24 public function setUpSite() { | |
25 return; | |
26 } | |
27 | |
28 /** | |
29 * Tests that profiles with no system.site do not work. | |
30 */ | |
31 public function testConfigSync() { | |
32 $this->htmlOutput(NULL); | |
33 $this->assertTitle('Configuration validation | Drupal'); | |
34 $this->assertText('The configuration synchronization failed validation.'); | |
35 $this->assertText('This import does not contain system.site configuration, so has been rejected.'); | |
36 | |
37 // Ensure there is no continuation button. | |
38 $this->assertNoText('Save and continue'); | |
39 $this->assertNoFieldById('edit-submit'); | |
40 } | |
41 | |
42 /** | |
43 * {@inheritdoc} | |
44 */ | |
45 protected function getConfigTarball() { | |
46 return __DIR__ . '/../../../fixtures/config_install/testing_config_install.tar.gz'; | |
47 } | |
48 | |
49 } |