PHP Class GeneralTest, wp-api-jwt-auth

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: Tmeister/wp-api-jwt-auth Class Usage Examples

Protected Properties

Свойство Type Description
$baseUrl
$client

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
setUp ( )

Method Details

setUp() protected méthode

protected setUp ( )

test_get_jwt_token() public méthode

Get the user token
public test_get_jwt_token ( )

test_is_jwt_installed() public méthode

Check for the jwt-auth/v1 endpoint and

test_is_site_up() public méthode

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

test_is_wp_api_installed() public méthode

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

test_jwt_write_access() public méthode

Try to Write a Post | Write Permissions

test_validate_jwt_token() public méthode

..

Property Details

$baseUrl protected_oe property

protected $baseUrl

$client protected_oe property

protected $client