Test for getClientId

This commit is contained in:
Alex Bilbie 2013-05-08 18:12:18 -07:00
parent 083a44df2e
commit 75894fd5bc

View File

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