Total Complexity | 1 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class SecurityClaimsTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @test |
||
16 | */ |
||
17 | public function it_resolves_claims() |
||
18 | { |
||
19 | $user = new User('[email protected]', 'qwerty', ['ROLE_USER', new Role('ROLE_ADMIN')]); |
||
20 | |||
21 | $claims = (new SecurityClaims())->resolve($user); |
||
22 | |||
23 | $this->assertEquals(['sub' => '[email protected]', 'roles' => ['user', 'admin']], $claims); |
||
24 | } |
||
26 |