From 1d5b6183ae974b7d7eae0a05e64ae919eea3ab1e Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 27 Nov 2023 13:00:50 +0000
Subject: [PATCH] Issue #3404106 by quietone, smustgrave, longwave: Fix test
 performance of
 \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest

---
 .../tests/src/Functional/ConfigTranslationInstallTest.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
index da8aa798109c..af4c6e2eb130 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationInstallTest.php
@@ -3,6 +3,7 @@
 namespace Drupal\Tests\config_translation\Functional;
 
 use Drupal\FunctionalTests\Installer\InstallerTestBase;
+use Drupal\Tests\node\Traits\ContentTypeCreationTrait;
 
 /**
  * Installs the config translation module on a site installed in non english.
@@ -11,6 +12,8 @@
  */
 class ConfigTranslationInstallTest extends InstallerTestBase {
 
+  use ContentTypeCreationTrait;
+
   /**
    * {@inheritdoc}
    */
@@ -19,7 +22,7 @@ class ConfigTranslationInstallTest extends InstallerTestBase {
   /**
    * {@inheritdoc}
    */
-  protected $profile = 'standard';
+  protected $defaultTheme = 'stark';
 
   /**
    * {@inheritdoc}
@@ -60,6 +63,9 @@ protected function getPo($langcode) {
   }
 
   public function testConfigTranslation() {
+    \Drupal::service('module_installer')->install(['node', 'field_ui']);
+    $this->createContentType(['type' => 'article']);
+
     $this->drupalGet('admin/config/regional/language/add');
     $this->submitForm(['predefined_langcode' => 'en'], 'Add custom language');
     $this->drupalGet('admin/config/regional/language/add');
-- 
GitLab