mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Test setIdentifier because @philsturgeon didn't
This commit is contained in:
@ -29,6 +29,13 @@ class Auth_Code_Grant_Test extends PHPUnit_Framework_TestCase
|
|||||||
$grant = new League\OAuth2\Server\Grant\AuthCode($a);
|
$grant = new League\OAuth2\Server\Grant\AuthCode($a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_setIdentifier()
|
||||||
|
{
|
||||||
|
$grant = new League\OAuth2\Server\Grant\AuthCode();
|
||||||
|
$grant->setIdentifier('foobar');
|
||||||
|
$this->assertEquals($grant->getIdentifier(), 'foobar');
|
||||||
|
}
|
||||||
|
|
||||||
public function test_setAuthTokenTTL()
|
public function test_setAuthTokenTTL()
|
||||||
{
|
{
|
||||||
$a = $this->returnDefault();
|
$a = $this->returnDefault();
|
||||||
|
Reference in New Issue
Block a user