File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -102,15 +102,7 @@ public function register(Container $container): void
102
102
103
103
// @todo stop requiring the bootstrap.php and just copy what is needed.
104
104
if (interface_exists (\PHPUnit \Framework \Test::class)) {
105
- require_once $ this ->drupalRoot . '/core/tests/bootstrap.php ' ;
106
-
107
- // class_alias is not supported by OptimizedDirectorySourceLocator or AutoloadSourceLocator,
108
- // so we manually load this PHPUnit compatibility trait that exists in Drupal 8.
109
- $ phpunitCompatTraitFilepath = $ this ->drupalRoot . '/core/tests/Drupal/Tests/PhpunitCompatibilityTrait.php ' ;
110
- if (file_exists ($ phpunitCompatTraitFilepath )) {
111
- require_once $ phpunitCompatTraitFilepath ;
112
- $ this ->autoloader ->addClassMap (['Drupal \\Tests \\PhpunitCompatibilityTrait ' => $ phpunitCompatTraitFilepath ]);
113
- }
105
+ require $ this ->drupalRoot . '/core/tests/bootstrap.php ' ;
114
106
}
115
107
116
108
foreach ($ this ->moduleData as $ extension ) {
You can’t perform that action at this time.
0 commit comments