Commit 136f70d2 authored by catch's avatar catch
Browse files

Issue #3257485 by TR, daffie: Constructor of Drupal\Core\Test\TestDiscovery...

Issue #3257485 by TR, daffie: Constructor of Drupal\Core\Test\TestDiscovery called with 3 parameters and the constructor only takes 2 in TestDiscoveryTest
parent 9db4e31b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 = [