Test setIdentifier because @philsturgeon didn't

This commit is contained in:
Alex Bilbie 2013-12-05 20:32:46 +00:00
parent 0db8850e81
commit 75482c9e20

View File

@ -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();