summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDamien Tournoud <damien@commerceguys.com>2013-01-14 17:06:11 +0400
committerDamien Tournoud <damien@commerceguys.com>2013-01-14 17:10:59 +0400
commitd690b466d3d29154717deb63f868b0bc0098705e (patch)
tree9fedb7028c949bb499c97fdccb31dc75708d03df /test
parentecd6dd2c20485287de02e63ee53e19376d140afc (diff)
downloadoauth2-server-php-d690b466d3d29154717deb63f868b0bc0098705e.tar.xz
Fix copy/paste errors in tests.
Diffstat (limited to 'test')
-rw-r--r--test/OAuth2/Server/Authorize/ImplicitTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/OAuth2/Server/Authorize/ImplicitTest.php b/test/OAuth2/Server/Authorize/ImplicitTest.php
index 9c10ca0..27ba933 100644
--- a/test/OAuth2/Server/Authorize/ImplicitTest.php
+++ b/test/OAuth2/Server/Authorize/ImplicitTest.php
@@ -26,7 +26,7 @@ class OAuth2_Server_Authorize_ImplicitTest extends PHPUnit_Framework_TestCase
$request = OAuth2_Request::createFromGlobals();
$request->query['client_id'] = 'Test Client ID'; // valid client id
$request->query['redirect_uri'] = 'http://adobe.com'; // valid redirect URI
- $request->query['response_type'] = 'token'; // invalid response type
+ $request->query['response_type'] = 'token'; // valid response type
$response = $server->handleAuthorizeRequest($request, false);
$this->assertEquals($response->getStatusCode(), 302);
@@ -44,7 +44,7 @@ class OAuth2_Server_Authorize_ImplicitTest extends PHPUnit_Framework_TestCase
$request = OAuth2_Request::createFromGlobals();
$request->query['client_id'] = 'Test Client ID'; // valid client id
$request->query['redirect_uri'] = 'http://adobe.com'; // valid redirect URI
- $request->query['response_type'] = 'token'; // invalid response type
+ $request->query['response_type'] = 'token'; // valid response type
$response = $server->handleAuthorizeRequest($request, true);
$this->assertEquals($response->getStatusCode(), 302);
@@ -73,7 +73,7 @@ class OAuth2_Server_Authorize_ImplicitTest extends PHPUnit_Framework_TestCase
$request = OAuth2_Request::createFromGlobals();
$request->query['client_id'] = 'Test Client ID'; // valid client id
$request->query['redirect_uri'] = 'http://adobe.com'; // valid redirect URI
- $request->query['response_type'] = 'token'; // invalid response type
+ $request->query['response_type'] = 'token'; // valid response type
$request->query['state'] = 'test'; // valid state string (just needs to be passed back to us)
$response = $server->handleAuthorizeRequest($request, true);
@@ -96,7 +96,7 @@ class OAuth2_Server_Authorize_ImplicitTest extends PHPUnit_Framework_TestCase
$request = OAuth2_Request::createFromGlobals();
$request->query['client_id'] = 'Test Client ID'; // valid client id
$request->query['redirect_uri'] = 'http://adobe.com?fake=something'; // valid redirect URI
- $request->query['response_type'] = 'token'; // invalid response type
+ $request->query['response_type'] = 'token'; // valid response type
$request->query['state'] = 'test'; // valid state string (just needs to be passed back to us)
$request->query['fake'] = 'something'; // add extra param to querystring
$response = $server->handleAuthorizeRequest($request, true);