aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/bshaffer/oauth2-server-php/test
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-12 08:54:51 +0000
committerMario <mario@mariovavti.com>2022-10-12 08:54:51 +0000
commit497c953d0eba2ab308dafcea4d1b2bde65aa7ed1 (patch)
tree006500e4c18fbc2bb216b9e5ee808237b1bb1390 /vendor/bshaffer/oauth2-server-php/test
parentbec76bd0577c5b131adffd8665afc73a4602bd03 (diff)
downloadvolse-hubzilla-497c953d0eba2ab308dafcea4d1b2bde65aa7ed1.tar.gz
volse-hubzilla-497c953d0eba2ab308dafcea4d1b2bde65aa7ed1.tar.bz2
volse-hubzilla-497c953d0eba2ab308dafcea4d1b2bde65aa7ed1.zip
composer update bshaffer/oauth2-server-php
Diffstat (limited to 'vendor/bshaffer/oauth2-server-php/test')
-rw-r--r--vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php11
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();