make(EnhanceJob::ENGINE_STUB))->toBeInstanceOf(StubEnhanceProcessor::class); }); it('returns the external worker processor for the external worker engine', function (): void { expect(app(EnhanceProcessorFactory::class)->make(EnhanceJob::ENGINE_EXTERNAL_WORKER))->toBeInstanceOf(ExternalWorkerEnhanceProcessor::class); }); it('throws for an unknown enhance processor engine', function (): void { app(EnhanceProcessorFactory::class)->make('unknown-engine'); })->throws(RuntimeException::class);