Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 28, 2024
1 parent 23cca98 commit b49d7a7
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions tests/worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit b49d7a7

Please sign in to comment.