@@ 74-82 (lines=9) @@ | ||
71 | $this->isInstanceOf(SimplePreAuthenticator::class); |
|
72 | } |
|
73 | ||
74 | public function testSupportsTokenNotIsValid() |
|
75 | { |
|
76 | $token = new PreAuthenticatedToken('user', 'credentials', 'xxxx'); |
|
77 | ||
78 | $simplePreAuthenticator = new SimplePreAuthenticator('keyName', 'header'); |
|
79 | $supportsToken = $simplePreAuthenticator->supportsToken($token, 'abcd'); |
|
80 | ||
81 | $this->assertFalse($supportsToken); |
|
82 | } |
|
83 | ||
84 | public function testSupportsTokenIsValid() |
|
85 | { |
|
@@ 84-92 (lines=9) @@ | ||
81 | $this->assertFalse($supportsToken); |
|
82 | } |
|
83 | ||
84 | public function testSupportsTokenIsValid() |
|
85 | { |
|
86 | $token = new PreAuthenticatedToken('user', 'credentials', 'abcd'); |
|
87 | ||
88 | $simplePreAuthenticator = new SimplePreAuthenticator('keyName', 'header'); |
|
89 | $supportsToken = $simplePreAuthenticator->supportsToken($token, 'abcd'); |
|
90 | ||
91 | $this->assertTrue($supportsToken); |
|
92 | } |
|
93 | ||
94 | public function testAuthenticateTokenInvalidArgumentException() |
|
95 | { |