comparison core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.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 * Verifies that profiles invalid config can not be installed.
7 *
8 * @group Installer
9 */
10 class InstallerExistingConfigNoConfigTest extends InstallerExistingConfigTestBase {
11
12 protected $profile = 'no_config_profile';
13
14 /**
15 * Final installer step: Configure site.
16 */
17 protected function setUpSite() {
18 // There are errors therefore there is nothing to do here.
19 return;
20 }
21
22 /**
23 * {@inheritdoc}
24 */
25 protected function getConfigTarball() {
26 return __DIR__ . '/../../../fixtures/config_install/testing_config_install_no_config.tar.gz';
27 }
28
29 /**
30 * Tests that profiles with an empty config/sync directory do not work.
31 */
32 public function testConfigSync() {
33 $this->assertTitle('Configuration validation | Drupal');
34 $this->assertText('The configuration synchronization failed validation.');
35 $this->assertText('This import is empty and if applied would delete all of your 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 }