From 8c9110dae54de4c1e4eeea45c7d85efee12deddd Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Fri, 24 Feb 2023 10:32:34 +0000
Subject: [PATCH] Issue #2254201 by smustgrave, jungle, kostyashupenko: Fix
 test performance of Drupal\system\Tests\Theme\EntityFilteringThemeTest

---
 .../Functional/Theme/EntityFilteringThemeTest.php    | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php b/core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php
index 112d95584115..e5330bab36b4 100644
--- a/core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/EntityFilteringThemeTest.php
@@ -25,17 +25,12 @@ class EntityFilteringThemeTest extends BrowserTestBase {
   /**
    * {@inheritdoc}
    */
-  protected $defaultTheme = 'stark';
+  protected static $modules = ['block', 'taxonomy', 'comment', 'node', 'views'];
 
   /**
-   * Use the standard profile.
-   *
-   * We test entity theming with the default node, user, comment, and taxonomy
-   * configurations at several paths in the standard profile.
-   *
-   * @var string
+   * {@inheritdoc}
    */
-  protected $profile = 'standard';
+  protected $defaultTheme = 'stark';
 
   /**
    * A list of all available themes.
@@ -118,6 +113,7 @@ protected function setUp(): void {
     ]);
     $this->term->save();
 
+    $this->createContentType(['type' => 'article']);
     // Add a comment field.
     $this->addDefaultCommentField('node', 'article', 'comment', CommentItemInterface::OPEN);
     // Create a test node tagged with the test term.
-- 
GitLab