PHP Class Customers

Inheritance: extends CI_Controller
Exibir arquivo Open project: woocommerce/woocommerce Class Usage Examples

Public Methods

Method Description
setUp ( ) Setup our test server, endpoints, and user info.
test_batch_customer ( ) Test customer batch endpoint.
test_create_customer ( ) Test creating a new customer.
test_create_customer_without_permission ( ) Test creating customers without valid permissions.
test_customer_schema ( ) Test customer schema.
test_delete_customer ( ) Test deleting a customer.
test_delete_customer_invalid_id ( ) Test deleting a customer with an invalid ID.
test_delete_customer_without_permission ( ) Test deleting a customer without valid permissions.
test_get_customer ( ) Test getting a single customer.
test_get_customer_invalid_id ( ) Test getting a single customer with an invalid ID.
test_get_customer_without_permission ( ) Test getting a single customer without valid permissions.
test_get_customers ( ) Test getting customers.
test_get_customers_without_permission ( ) Test getting customers without valid permissions.
test_register_routes ( ) Test route registration.
test_update_customer ( ) Test updating a customer.
test_update_customer_invalid_id ( ) Test updating a customer with an invalid ID.
test_update_customer_without_permission ( ) Test updating a customer without valid permissions.

Method Details

setUp() public method

Setup our test server, endpoints, and user info.
public setUp ( )

test_batch_customer() public method

Test customer batch endpoint.
Since: 2.7.0
public test_batch_customer ( )

test_create_customer() public method

Test creating a new customer.
Since: 2.7.0

test_create_customer_without_permission() public method

Test creating customers without valid permissions.
Since: 2.7.0

test_customer_schema() public method

Test customer schema.
Since: 2.7.0

test_delete_customer() public method

Test deleting a customer.
Since: 2.7.0

test_delete_customer_invalid_id() public method

Test deleting a customer with an invalid ID.
Since: 2.7.0

test_delete_customer_without_permission() public method

Test deleting a customer without valid permissions.
Since: 2.7.0

test_get_customer() public method

Test getting a single customer.
Since: 2.7.0
public test_get_customer ( )

test_get_customer_invalid_id() public method

Test getting a single customer with an invalid ID.
Since: 2.7.0

test_get_customer_without_permission() public method

Test getting a single customer without valid permissions.
Since: 2.7.0

test_get_customers() public method

Test getting customers.
Since: 2.7.0
public test_get_customers ( )

test_get_customers_without_permission() public method

Test getting customers without valid permissions.
Since: 2.7.0

test_register_routes() public method

Test route registration.
Since: 2.7.0

test_update_customer() public method

Test updating a customer.
Since: 2.7.0

test_update_customer_invalid_id() public method

Test updating a customer with an invalid ID.
Since: 2.7.0

test_update_customer_without_permission() public method

Test updating a customer without valid permissions.
Since: 2.7.0