Skip to content

Commit f5d38f9

Browse files
committed
Update test
1 parent f9be25e commit f5d38f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/TestCase/Authenticator/TokenAuthenticatorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ public function testTokenPrefix()
151151
$this->assertInstanceOf(Result::class, $result);
152152
$this->assertSame(Result::FAILURE_IDENTITY_NOT_FOUND, $result->getStatus());
153153

154-
// should not modify in between
155-
$requestWithHeaders = $this->request->withAddedHeader('X-Dipper-Auth', 'token_auth-token-13');
154+
// should not remove prefix from token
155+
$requestWithHeaders = $this->request->withAddedHeader('X-Dipper-Auth', 'mari mariano');
156156
$tokenAuth = new TokenAuthenticator($this->identifiers, [
157157
'header' => 'X-Dipper-Auth',
158-
'tokenPrefix' => 'token_',
158+
'tokenPrefix' => 'mari',
159159
]);
160160
$result = $tokenAuth->authenticate($requestWithHeaders);
161161
$this->assertInstanceOf(Result::class, $result);

0 commit comments

Comments
 (0)