mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-03 12:10:48 +05:30
Stop testing stdClass as an argument to hasScope, it is pointless
This commit is contained in:
parent
33f4f5b7ab
commit
44db2b295f
@ -275,11 +275,10 @@ class Resource_Server_test extends PHPUnit_Framework_TestCase
|
|||||||
$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->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')));
|
||||||
$this->assertFalse($s->hasScope(array('foobar')));
|
$this->assertFalse($s->hasScope(array('foobar')));
|
||||||
$this->assertFalse($s->hasScope('foobar'));
|
$this->assertFalse($s->hasScope('foobar'));
|
||||||
$this->assertFalse($s->hasScope(new StdClass));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user