Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
42
vendor/genealabs/laravel-sign-in-with-apple/tests/CreatesApplication.php
vendored
Normal file
42
vendor/genealabs/laravel-sign-in-with-apple/tests/CreatesApplication.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace GeneaLabs\LaravelSignInWithApple\Tests;
|
||||
|
||||
use Illuminate\Contracts\Http\Kernel;
|
||||
use Orchestra\Testbench\Dusk\Options;
|
||||
use Illuminate\Session\Middleware\StartSession;
|
||||
use Laravel\Socialite\SocialiteServiceProvider;
|
||||
use GeneaLabs\LaravelSignInWithApple\Providers\ServiceProvider;
|
||||
use GeneaLabs\LaravelSignInWithApple\Tests\Fixtures\Providers\TestingServiceProvider;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Options::withUI();
|
||||
$this->artisan("view:clear");
|
||||
$this->artisan("cache:clear");
|
||||
$this->artisan("config:clear");
|
||||
}
|
||||
|
||||
protected function getEnvironmentSetUp($app)
|
||||
{
|
||||
$app['config']->set('database.redis.client', "predis");
|
||||
$app->make(Kernel::class)
|
||||
->pushMiddleware(StartSession::class);
|
||||
|
||||
$app->make("view")
|
||||
->addLocation(__DIR__ . "/Fixtures/resources/views");
|
||||
}
|
||||
|
||||
protected function getPackageProviders($app)
|
||||
{
|
||||
return [
|
||||
SocialiteServiceProvider::class,
|
||||
ServiceProvider::class,
|
||||
TestingServiceProvider::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user