mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	First test case.
Signed-off-by: Michael Gooden <michael@bluepointweb.com>
This commit is contained in:
		
				
					committed by
					
						 Alex Bilbie
						Alex Bilbie
					
				
			
			
				
	
			
			
			
						parent
						
							5bd62fe942
						
					
				
				
					commit
					6c34535155
				
			| @@ -103,6 +103,19 @@ class Authorization_Server_test extends PHPUnit_Framework_TestCase | |||||||
|         $this->assertFalse($v); |         $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() |     public function test_requireStateParam() | ||||||
|     { |     { | ||||||
|         $a = $this->returnDefault(); |         $a = $this->returnDefault(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user