-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnverifiedFeatureTestCase.php
37 lines (32 loc) · 1.24 KB
/
UnverifiedFeatureTestCase.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace Illegal\InsideAuth\Tests;
use Exception;
use Illegal\InsideAuth\InsideAuth;
use Illegal\InsideAuth\Models\User;
use Illegal\InsideAuth\Tests\FeatureHelpers\Exposes;
use Illegal\InsideAuth\Tests\FeatureHelpers\Has;
use Illegal\InsideAuth\Tests\FeatureHelpers\HasNot;
use Illegal\InsideAuth\Tests\FeatureHelpers\Hides;
use Illegal\InsideAuth\Tests\FeatureHelpers\Providers\AuthServiceProvider;
use Illegal\InsideAuth\Tests\FeatureHelpers\Redirects;
use Illegal\InsideAuth\Tests\FeatureHelpers\Routes;
class UnverifiedFeatureTestCase extends LoggedOutFeatureTestCase
{
/**
* Boot the authentication
* @throws Exception
*/
protected function bootAuth(): void
{
$user = User::factory()->create([
'email_verified_at' => null,
]);
$authenticator = InsideAuth::getAuthenticator(AuthServiceProvider::AUTH_NAME);
$this->exposes = new Exposes($authenticator, $user);
$this->redirects = new Redirects($authenticator, $user);
$this->routes = new Routes($authenticator, $user);
$this->has = new Has($authenticator, $user);
$this->hasNot = new HasNot($authenticator, $user);
$this->hides = new Hides($authenticator, $user);
}
}