Skip to content

Commit 2882715

Browse files
committed
Weight all test modules higher
1 parent cec4fdd commit 2882715

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Drupal/DrupalAutoloader.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ public function register(Container $container): void
9191

9292
$this->moduleData = array_merge($this->extensionDiscovery->scan('module'), $profiles);
9393
usort($this->moduleData, static function (Extension $a, Extension $b) {
94-
// blazy_test causes errors, ensure it is loaded last.
95-
return $a->getName() === 'blazy_test' ? 10 : 0;
94+
return strpos($a->getName(), '_test') !== false ? 10 : 0;
9695
});
9796
$this->themeData = $this->extensionDiscovery->scan('theme');
9897
$this->addTestNamespaces();

0 commit comments

Comments
 (0)