From b49d7a7f0512b56a94c73dc7ec91307dfaddeed8 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 28 Oct 2024 19:25:53 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- tests/worker.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/tests/worker.php b/tests/worker.php index f513e95d..b4e71c7e 100644 --- a/tests/worker.php +++ b/tests/worker.php @@ -7,26 +7,11 @@ use Illuminate\Queue\QueueManager; use Illuminate\Queue\Worker; use Illuminate\Queue\WorkerOptions; -use Orchestra\Testbench\Concerns\CreatesApplication; -$appLoader = new class -{ - use CreatesApplication; - - /** - * Define environment setup. - * - * @param \Illuminate\Foundation\Application $app - * @return void - */ - protected function getEnvironmentSetUp($app) - { - // Define your environment setup. - } -}; +use function Orchestra\Testbench\container; // Configure the application... -$app = $appLoader->createApplication(); +$app = container()->createApplication(); $app->register(Laravel\Horizon\HorizonServiceProvider::class); $app->make('config')->set('queue.default', 'redis');