You are here

public function ConfigImportUITest::testConfigUninstallConfigException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/config/src/Tests/ConfigImportUITest.php \Drupal\config\Tests\ConfigImportUITest::testConfigUninstallConfigException()

File

core/modules/config/src/Tests/ConfigImportUITest.php, line 366
Contains \Drupal\config\Tests\ConfigImportUITest.

Class

ConfigImportUITest
Tests the user interface for importing/exporting configuration.

Namespace

Drupal\config\Tests

Code

public function testConfigUninstallConfigException() {
  $sync = $this->container
    ->get('config.storage.sync');
  $core_extension = $this
    ->config('core.extension')
    ->get();
  unset($core_extension['module']['config']);
  $sync
    ->write('core.extension', $core_extension);
  $this
    ->drupalGet('admin/config/development/configuration');
  $this
    ->assertText('core.extension');

  // Import and verify that both do not appear anymore.
  $this
    ->drupalPostForm(NULL, array(), t('Import all'));
  $this
    ->assertText('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.');
}