diff --git a/framework/core/src/Extension/ExtensionServiceProvider.php b/framework/core/src/Extension/ExtensionServiceProvider.php index a9f0e19e2a..7a6eab251a 100644 --- a/framework/core/src/Extension/ExtensionServiceProvider.php +++ b/framework/core/src/Extension/ExtensionServiceProvider.php @@ -27,12 +27,10 @@ public function register(): void // below, so that extensions have a chance to register things on the // container before the core boots up (and starts resolving services). $this->container['flarum']->booting(function (Container $container) { - if (! $this->container->runningUnitTests()) { - /** @var ExtensionManager $manager */ - $manager = $container->make('flarum.extensions'); + /** @var ExtensionManager $manager */ + $manager = $container->make('flarum.extensions'); - $manager->extend($container); - } + $manager->extend($container); }); }