From 352d49ec5a5cdcbf2e074f34d1b6ef274c736f24 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 22 Feb 2013 16:55:42 +0000 Subject: [PATCH] Fixed broken tests --- tests/authorization/AuthServerTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/authorization/AuthServerTest.php b/tests/authorization/AuthServerTest.php index 13b533c0..95ca9a99 100644 --- a/tests/authorization/AuthServerTest.php +++ b/tests/authorization/AuthServerTest.php @@ -284,7 +284,8 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase 'client_id' => 1234, 'redirect_uri' => 'http://foo/redirect', 'response_type' => 'code', - 'scope' => 'foo' + 'scope' => 'foo', + 'state' => 'xyz' )); $this->assertEquals(array( @@ -305,7 +306,8 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase 'description' => 'Foo Name Description' ) ), - 'scope' => 'foo' + 'scope' => 'foo', + 'state' => 'xyz' ), $v); } @@ -332,6 +334,7 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase $_GET['redirect_uri'] = 'http://foo/redirect'; $_GET['response_type'] = 'code'; $_GET['scope'] = 'foo'; + $_GET['state'] = 'xyz'; $request = new OAuth2\Util\Request($_GET); $a->setRequest($request); @@ -356,7 +359,8 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase 'description' => 'Foo Name Description' ) ), - 'scope' => 'foo' + 'scope' => 'foo', + 'state' => 'xyz' ), $v); }