PHP 클래스 App\Tests\Auth\OAuthServerTest

상속: extends App\Tests\TestCase, use trait Illuminate\Foundation\Testing\DatabaseMigrations
파일 보기 프로젝트 열기: joselfonseca/laravel-api

공개 메소드들

메소드 설명
itRefreshesTheToken ( ) Once a token is delivered, it can be refreshed by the server.
itRejectsAnExternalRequest ( ) A request to auth/login with no parameters in the body should return error
itRejectsInvalidClient ( ) A request to auth/login with wrong client and secret
itRejectsRequestWithIncompleteBody ( ) If there is an authorized client querying the API but incomplete body should respond with a 400 and the errors
itResolvesClientFromId ( )
itResolvesUserFromId ( )
itValidatesClientCredentials ( )
itValidatesCredentials ( ) If the authorized client request a login with valid credentials it should respond 200
itValidatesWrongCredentials ( ) If an authorized client makes a request with wrong user credentials it should return 401

메소드 상세

itRefreshesTheToken() 공개 메소드

Once a token is delivered, it can be refreshed by the server.
public itRefreshesTheToken ( )

itRejectsAnExternalRequest() 공개 메소드

A request to auth/login with no parameters in the body should return error

itRejectsInvalidClient() 공개 메소드

A request to auth/login with wrong client and secret

itRejectsRequestWithIncompleteBody() 공개 메소드

If there is an authorized client querying the API but incomplete body should respond with a 400 and the errors

itResolvesClientFromId() 공개 메소드

itResolvesUserFromId() 공개 메소드

itValidatesClientCredentials() 공개 메소드

itValidatesCredentials() 공개 메소드

If the authorized client request a login with valid credentials it should respond 200

itValidatesWrongCredentials() 공개 메소드

If an authorized client makes a request with wrong user credentials it should return 401