From 75482c9e20de7d35ca844970348dba29216ff68c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 5 Dec 2013 20:32:46 +0000 Subject: [PATCH] Test setIdentifier because @philsturgeon didn't --- tests/authorization/AuthCodeGrantTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/authorization/AuthCodeGrantTest.php b/tests/authorization/AuthCodeGrantTest.php index 43465e5b..fadf90f2 100644 --- a/tests/authorization/AuthCodeGrantTest.php +++ b/tests/authorization/AuthCodeGrantTest.php @@ -29,6 +29,13 @@ class Auth_Code_Grant_Test extends PHPUnit_Framework_TestCase $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() { $a = $this->returnDefault();