From 6c34535155ca48e8be83dce0f14ba3f3bf7df93a Mon Sep 17 00:00:00 2001 From: Michael Gooden Date: Tue, 5 Mar 2013 08:22:04 +0200 Subject: [PATCH] First test case. Signed-off-by: Michael Gooden --- tests/authorization/AuthServerTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/authorization/AuthServerTest.php b/tests/authorization/AuthServerTest.php index 2e31999c..8a83faff 100644 --- a/tests/authorization/AuthServerTest.php +++ b/tests/authorization/AuthServerTest.php @@ -103,6 +103,19 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase $this->assertFalse($v); } + public function test_defaultScope() + { + $a = $this->returnDefault(); + $a->defaultScope('test.default'); + + $reflector = new ReflectionClass($a); + $requestProperty = $reflector->getProperty('defaultScope'); + $requestProperty->setAccessible(true); + $v = $requestProperty->getValue($a); + + $this->assertEquals('test.default', $v); + } + public function test_requireStateParam() { $a = $this->returnDefault();