Skip to content
Snippets Groups Projects

Fix test performance of \Drupal\Tests\config\Functional\ConfigImportAllTest

Closed quietone requested to merge issue/drupal-3405095:3405095-fix-test-performance into 11.x
1 file
+ 14
6
Compare changes
  • Side-by-side
  • Inline
@@ -29,13 +29,21 @@ class ConfigImportAllTest extends ModuleTestBase {
protected $webUser;
/**
* The profile to install as a basis for testing.
* Modules to enable.
*
* Using the standard profile as this has a lot of additional configuration.
*
* @var string
* @var array
*/
protected static $modules = ['config'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected $profile = 'standard';
protected $profile = 'testing';
/**
* {@inheritdoc}
@@ -100,7 +108,7 @@ public function testInstallUninstall() {
$all_modules = \Drupal::service('extension.list.module')->getList();
$database_module = \Drupal::service('database')->getProvider();
$expected_modules = ['path_alias', 'system', 'user', 'standard', $database_module];
$expected_modules = ['path_alias', 'system', 'user', 'testing', $database_module];
// Ensure that only core required modules and the install profile can not be uninstalled.
$validation_reasons = \Drupal::service('module_installer')->validateUninstall(array_keys($all_modules));
Loading