You are here

public function InstallerExistingConfigNoConfigTest::testConfigSync in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigNoConfigTest::testConfigSync()

Tests that profiles with an empty config/sync directory do not work.

Overrides InstallerExistingConfigTestBase::testConfigSync

File

core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigNoConfigTest.php, line 36

Class

InstallerExistingConfigNoConfigTest
Verifies that profiles invalid config can not be installed.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testConfigSync() {
  $this
    ->assertTitle('Configuration validation | Drupal');
  $this
    ->assertText('The configuration synchronization failed validation.');
  $this
    ->assertText('This import is empty and if applied would delete all of your configuration, so has been rejected.');

  // Ensure there is no continuation button.
  $this
    ->assertNoText('Save and continue');
  $this
    ->assertNoFieldById('edit-submit');
}