PHP 클래스 GeneralTest, wp-api-jwt-auth

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: Tmeister/wp-api-jwt-auth 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$baseUrl
$client

공개 메소드들

메소드 설명
test_get_jwt_token ( ) Get the user token
test_is_jwt_installed ( ) Check for the jwt-auth/v1 endpoint and
test_is_site_up ( ) Load the site and look for a Status Code Equal to 200
test_is_wp_api_installed ( ) Look for the wp-json endpoint and look for basic data.
test_jwt_write_access ( ) Try to Write a Post | Write Permissions
test_validate_jwt_token ( ) Get the Token and then validate.

보호된 메소드들

메소드 설명
setUp ( )

메소드 상세

setUp() 보호된 메소드

protected setUp ( )

test_get_jwt_token() 공개 메소드

Get the user token
public test_get_jwt_token ( )

test_is_jwt_installed() 공개 메소드

Check for the jwt-auth/v1 endpoint and

test_is_site_up() 공개 메소드

Load the site and look for a Status Code Equal to 200
public test_is_site_up ( )

test_is_wp_api_installed() 공개 메소드

Look for the wp-json endpoint and look for basic data.

test_jwt_write_access() 공개 메소드

Try to Write a Post | Write Permissions

test_validate_jwt_token() 공개 메소드

..

프로퍼티 상세

$baseUrl 보호되어 있는 프로퍼티

protected $baseUrl

$client 보호되어 있는 프로퍼티

protected $client