PHP Class GeneralTest, wp-api-jwt-auth

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: Tmeister/wp-api-jwt-auth Class Usage Examples

Protected Properties

Property Type Description
$baseUrl
$client

Public Methods

Method 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.

Protected Methods

Method Description
setUp ( )

Method Details

setUp() protected method

protected setUp ( )

test_get_jwt_token() public method

Get the user token
public test_get_jwt_token ( )

test_is_jwt_installed() public method

Check for the jwt-auth/v1 endpoint and

test_is_site_up() public method

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

test_is_wp_api_installed() public method

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

test_jwt_write_access() public method

Try to Write a Post | Write Permissions

test_validate_jwt_token() public method

..

Property Details

$baseUrl protected property

protected $baseUrl

$client protected property

protected $client