mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Test for getClientId
This commit is contained in:
parent
083a44df2e
commit
75894fd5bc
@ -174,6 +174,7 @@ class Resource_Server_test extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals(123, $s->getOwnerId());
|
$this->assertEquals(123, $s->getOwnerId());
|
||||||
$this->assertEquals('user', $s->getOwnerType());
|
$this->assertEquals('user', $s->getOwnerType());
|
||||||
$this->assertEquals('abcdef', $s->getAccessToken());
|
$this->assertEquals('abcdef', $s->getAccessToken());
|
||||||
|
$this->assertEquals('testapp', $s->getClientId());
|
||||||
$this->assertTrue($s->hasScope('foo'));
|
$this->assertTrue($s->hasScope('foo'));
|
||||||
$this->assertTrue($s->hasScope('bar'));
|
$this->assertTrue($s->hasScope('bar'));
|
||||||
$this->assertTrue($s->hasScope(array('foo', 'bar')));
|
$this->assertTrue($s->hasScope(array('foo', 'bar')));
|
||||||
|
Loading…
Reference in New Issue
Block a user