public function testGetTestsInProfiles() { $this->
setupVfsWithTestClasses();
$class_loader =
$this->
prophesize(ClassLoader::
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());
$result =
$test_discovery->
getTestClasses('test_profile_module',
['PHPUnit-Kernel'
]);
$expected =
[ 'example3' =>
[ 'Drupal\Tests\test_profile_module\Kernel\KernelExampleTest4' =>
[ 'name' => 'Drupal\Tests\test_profile_module\Kernel\KernelExampleTest4',
'description' => 'Test description',
'group' => 'example3',
'groups' =>
['example3'
],
'type' => 'PHPUnit-Kernel',
],
],