Skip to content

Commit

Permalink
Simplify boostrapping stub Laravel application for Testing (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone authored Oct 26, 2023
1 parent 4010755 commit 5a5e0c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/Fixtures/artisan
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ define('LARAVEL_START', microtime(true));

require __DIR__.'/../../vendor/autoload.php';

$app = require_once __DIR__.'/../../vendor/orchestra/testbench-core/laravel/bootstrap/app.php';

$_ENV['PAIL_TESTS'] = true;

$app->register(\Laravel\Pail\PailServiceProvider::class);
$app = Orchestra\Testbench\Foundation\Application::create(
resolvingCallback: function ($app) {
$app->register(Laravel\Pail\PailServiceProvider::class);
}
);

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 5a5e0c9

Please sign in to comment.