mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Merge branch 'tests_refactoring' into develop
This commit is contained in:
		@@ -37,7 +37,7 @@ class AccountQueueController extends AmqpController {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function routeUsernameChanged(UsernameChanged $body) {
 | 
			
		||||
        $mojangApi = new MojangApi();
 | 
			
		||||
        $mojangApi = $this->createMojangApi();
 | 
			
		||||
        try {
 | 
			
		||||
            $response = $mojangApi->usernameToUUID($body->newUsername);
 | 
			
		||||
        } catch (NoContentException $e) {
 | 
			
		||||
@@ -68,4 +68,11 @@ class AccountQueueController extends AmqpController {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return MojangApi
 | 
			
		||||
     */
 | 
			
		||||
    protected function createMojangApi() : MojangApi {
 | 
			
		||||
        return new MojangApi();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user