Loading core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php +1 −2 Original line number Diff line number Diff line Loading @@ -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 = [ Loading Loading
core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php +1 −2 Original line number Diff line number Diff line Loading @@ -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 = [ Loading