mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 13:39:48 +05:30
Fixed broken tests
This commit is contained in:
parent
8eb7dc0d76
commit
352d49ec5a
@ -284,7 +284,8 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase
|
|||||||
'client_id' => 1234,
|
'client_id' => 1234,
|
||||||
'redirect_uri' => 'http://foo/redirect',
|
'redirect_uri' => 'http://foo/redirect',
|
||||||
'response_type' => 'code',
|
'response_type' => 'code',
|
||||||
'scope' => 'foo'
|
'scope' => 'foo',
|
||||||
|
'state' => 'xyz'
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->assertEquals(array(
|
$this->assertEquals(array(
|
||||||
@ -305,7 +306,8 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase
|
|||||||
'description' => 'Foo Name Description'
|
'description' => 'Foo Name Description'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'scope' => 'foo'
|
'scope' => 'foo',
|
||||||
|
'state' => 'xyz'
|
||||||
), $v);
|
), $v);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,6 +334,7 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase
|
|||||||
$_GET['redirect_uri'] = 'http://foo/redirect';
|
$_GET['redirect_uri'] = 'http://foo/redirect';
|
||||||
$_GET['response_type'] = 'code';
|
$_GET['response_type'] = 'code';
|
||||||
$_GET['scope'] = 'foo';
|
$_GET['scope'] = 'foo';
|
||||||
|
$_GET['state'] = 'xyz';
|
||||||
|
|
||||||
$request = new OAuth2\Util\Request($_GET);
|
$request = new OAuth2\Util\Request($_GET);
|
||||||
$a->setRequest($request);
|
$a->setRequest($request);
|
||||||
@ -356,7 +359,8 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase
|
|||||||
'description' => 'Foo Name Description'
|
'description' => 'Foo Name Description'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'scope' => 'foo'
|
'scope' => 'foo',
|
||||||
|
'state' => 'xyz'
|
||||||
), $v);
|
), $v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user