diff --git a/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php b/core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php index 41d4e7dedd99137d206ab495102adfd3d7043ecb..40f29c10e5e581b0446737dfccd68ce28eafb7cf 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 = [