| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ClaimsCollectorTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @test |
||
| 16 | */ |
||
| 17 | public function it_resolves_claims() |
||
| 18 | { |
||
| 19 | $user = new User('[email protected]', 'qwerty'); |
||
| 20 | |||
| 21 | $collector = new ClaimsCollector([ |
||
| 22 | new FixedClaims(['foo' => 'bar', 'baz' => 'qux']), |
||
| 23 | new FixedClaims(['abc' => 'xyz', 'foo' => 'foo']), |
||
| 24 | ]); |
||
| 25 | |||
| 26 | $this->assertEquals(['foo' => 'foo', 'baz' => 'qux', 'abc' => 'xyz'], $collector->resolve($user)); |
||
| 27 | } |
||
| 29 |