mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Re-add the complete testCompleteAuthorizationRequestNoUser()
This commit is contained in:
		@@ -1655,6 +1655,20 @@ class AuthCodeGrantTest extends \PHPUnit_Framework_TestCase
 | 
				
			|||||||
        $this->assertTrue($response->getRefreshToken() instanceof RefreshTokenEntityInterface);
 | 
					        $this->assertTrue($response->getRefreshToken() instanceof RefreshTokenEntityInterface);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * @expectedException \LogicException
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public function testCompleteAuthorizationRequestNoUser()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $grant = new AuthCodeGrant(
 | 
				
			||||||
 | 
					            $this->getMockBuilder(AuthCodeRepositoryInterface::class)->getMock(),
 | 
				
			||||||
 | 
					            $this->getMockBuilder(RefreshTokenRepositoryInterface::class)->getMock(),
 | 
				
			||||||
 | 
					            new \DateInterval('PT10M')
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $grant->completeAuthorizationRequest(new AuthorizationRequest());
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * @expectedException     \League\OAuth2\Server\Exception\OAuthServerException
 | 
					     * @expectedException     \League\OAuth2\Server\Exception\OAuthServerException
 | 
				
			||||||
+    * @expectedExceptionCode 5
 | 
					+    * @expectedExceptionCode 5
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user