From 136f70d2f17e80e170db06559828d4a19cab2cc4 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 13 Jun 2022 17:31:29 +0100
Subject: [PATCH] Issue #3257485 by TR, daffie: Constructor of
 Drupal\Core\Test\TestDiscovery called with 3 parameters and the constructor
 only takes 2 in TestDiscoveryTest

---
 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php b/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php
index 41d4e7dedd99..40f29c10e5e5 100644
--- a/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php
+++ b/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php
@@ -414,14 +414,13 @@ public function testGetTestClassesWithSelectedTypes() {
   public function testGetTestsInProfiles() {
     $this->setupVfsWithTestClasses();
     $class_loader = $this->prophesize(ClassLoader::class);
-    $module_handler = $this->prophesize(ModuleHandlerInterface::class);
 
     $container = new Container();
     $container->set('kernel', new DrupalKernel('prod', new ClassLoader()));
     $container->setParameter('site.path', 'sites/default');
     \Drupal::setContainer($container);
 
-    $test_discovery = new TestDiscovery('vfs://drupal', $class_loader->reveal(), $module_handler->reveal());
+    $test_discovery = new TestDiscovery('vfs://drupal', $class_loader->reveal());
 
     $result = $test_discovery->getTestClasses('test_profile_module', ['PHPUnit-Kernel']);
     $expected = [
-- 
GitLab