diff options
author | Mario <mario@mariovavti.com> | 2022-06-02 07:43:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-06-02 07:43:33 +0000 |
commit | 47448b11cdd5b077b6a8412b41db2862c6d2d4b3 (patch) | |
tree | 700bf3e95f6b910ec9ea00971072e445924fd417 /vendor/bshaffer/oauth2-server-php/test | |
parent | 073ed5253825842ee307add098c647dc74076251 (diff) | |
download | volse-hubzilla-47448b11cdd5b077b6a8412b41db2862c6d2d4b3.tar.gz volse-hubzilla-47448b11cdd5b077b6a8412b41db2862c6d2d4b3.tar.bz2 volse-hubzilla-47448b11cdd5b077b6a8412b41db2862c6d2d4b3.zip |
composer updates
Diffstat (limited to 'vendor/bshaffer/oauth2-server-php/test')
-rw-r--r-- | vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php b/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php index 71cca3bd9..021fc7f5a 100644 --- a/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php +++ b/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php @@ -35,6 +35,17 @@ class BearerTest extends TestCase $this->assertEquals($response->getParameter('error_description'), 'The content type for POST requests must be "application/x-www-form-urlencoded"'); } + public function testMissingContentTypeExpectsToBeCorrectContent() + { + $bearer = new Bearer(); + $request = TestRequest::createPost(array( + 'access_token' => 'ThisIsMyAccessToken' + )); + + $param = $bearer->getAccessTokenParameter($request, $response = new Response()); + $this->assertEquals($param, 'ThisIsMyAccessToken'); + } + public function testValidRequestUsingAuthorizationHeader() { $bearer = new Bearer(); |